From bbf3877d6577e923483e1511e67f21325cffc399 Mon Sep 17 00:00:00 2001 From: carla Date: Tue, 4 Feb 2020 10:06:34 +0200 Subject: [PATCH] lnd: fix gosimple linter failure GoSimple linter check fails for time.Now().Sub. Change the logged database open time to use time.Since instead. --- lnd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnd.go b/lnd.go index 16a47a43..1c10c546 100644 --- a/lnd.go +++ b/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.