From 633ea71ad18f1c460970b5e32d90ac8dfc506d00 Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Tue, 14 Apr 2020 17:57:44 +0200 Subject: [PATCH] lnd: time.Since instead of time.Now().Sub(...) --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 70154f1c..0be26c31 100644 --- a/server.go +++ b/server.go @@ -2448,7 +2448,7 @@ func (s *server) nextPeerBackoff(pubStr string, // The peer succeeded in starting. If the connection didn't last long // enough to be considered stable, we'll continue to back off retries // with this peer. - connDuration := time.Now().Sub(startTime) + connDuration := time.Since(startTime) if connDuration < defaultStableConnDuration { return computeNextBackoff(backoff) }