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:
carla 2020-02-04 10:06:34 +02:00
parent 698f1175f8
commit bbf3877d65
No known key found for this signature in database
GPG Key ID: 4CA7FE54A6213C91

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.