Merge pull request #4309 from Roasbeef/restore-open-time
lnd: fix regression in DB open time logs
This commit is contained in:
commit
d32c7a4814
2
lnd.go
2
lnd.go
@ -250,6 +250,7 @@ func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error {
|
|||||||
ltndLog.Infof("Opening the main database, this might take a few " +
|
ltndLog.Infof("Opening the main database, this might take a few " +
|
||||||
"minutes...")
|
"minutes...")
|
||||||
|
|
||||||
|
startOpenTime := time.Now()
|
||||||
chanDbBackend, err := cfg.DB.GetBackend(
|
chanDbBackend, err := cfg.DB.GetBackend(
|
||||||
cfg.localDatabaseDir(), cfg.networkName(),
|
cfg.localDatabaseDir(), cfg.networkName(),
|
||||||
)
|
)
|
||||||
@ -260,7 +261,6 @@ func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error {
|
|||||||
|
|
||||||
// Open the channeldb, which is dedicated to storing channel, and
|
// Open the channeldb, which is dedicated to storing channel, and
|
||||||
// network related metadata.
|
// network related metadata.
|
||||||
startOpenTime := time.Now()
|
|
||||||
chanDB, err := channeldb.CreateWithBackend(
|
chanDB, err := channeldb.CreateWithBackend(
|
||||||
chanDbBackend,
|
chanDbBackend,
|
||||||
channeldb.OptionSetRejectCacheSize(cfg.Caches.RejectCacheSize),
|
channeldb.OptionSetRejectCacheSize(cfg.Caches.RejectCacheSize),
|
||||||
|
Loading…
Reference in New Issue
Block a user