mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
lnd: time.Since instead of time.Now().Sub(...)
This commit is contained in:
parent
fe59890a4b
commit
633ea71ad1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue