lnd: don't set freelist value when creating channeldb

This value actually isn't read anywhere, since it's no longer used.
Instead, `cfg.Db.Bolt.NoSyncFreeList` is what's evaluated when we go to
open the DB.
This commit is contained in:
Olaoluwa Osuntokun 2020-08-04 15:33:21 -07:00
parent ec94532968
commit 675c1b95c9
No known key found for this signature in database
GPG key ID: BC13F65E2DC84465

1
lnd.go
View file

@ -269,7 +269,6 @@ func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error {
chanDbBackend,
channeldb.OptionSetRejectCacheSize(cfg.Caches.RejectCacheSize),
channeldb.OptionSetChannelCacheSize(cfg.Caches.ChannelCacheSize),
channeldb.OptionSetSyncFreelist(cfg.SyncFreelist),
channeldb.OptionDryRunMigration(cfg.DryRunMigration),
)
switch {