lnd: fix gosimple linter failure
GoSimple linter check fails for time.Now().Sub. Change the logged database open time to use time.Since instead.
This commit is contained in:
parent
698f1175f8
commit
bbf3877d65
2
lnd.go
2
lnd.go
@ -241,7 +241,7 @@ func Main(lisCfg ListenerCfg) error {
|
||||
}
|
||||
defer chanDB.Close()
|
||||
|
||||
openTime := time.Now().Sub(startOpenTime)
|
||||
openTime := time.Since(startOpenTime)
|
||||
ltndLog.Infof("Database now open (time_to_open=%v)!", openTime)
|
||||
|
||||
// Only process macaroons if --no-macaroons isn't set.
|
||||
|
Loading…
Reference in New Issue
Block a user