diff --git a/router/consts.go b/router/consts.go index 02a93edf..ae9fa46b 100644 --- a/router/consts.go +++ b/router/consts.go @@ -1,8 +1,8 @@ package router import ( - "time" "math" + "time" ) const ( diff --git a/router/types.go b/router/types.go index 5cfd51e0..332669f2 100644 --- a/router/types.go +++ b/router/types.go @@ -173,9 +173,9 @@ type ConnectionState int // Information about an address where we may find a peer type Target struct { - attempting bool // are we currently attempting to connect there? - tryAfter time.Time // next time to try this address - tryInterval time.Duration // backoff time on next failure + attempting bool // are we currently attempting to connect there? + tryAfter time.Time // next time to try this address + tryInterval time.Duration // backoff time on next failure } // UDPSender interface and implementations