Cosmetic changes applied by
This commit is contained in:
1 parent
ba2c27b9fe
commit
4eeeabcf56
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -1,8 +1,8 @@
|
|||||||
package router
|
package router
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
|
||||||
"math"
|
"math"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
+3
-3
@@ -173,9 +173,9 @@ type ConnectionState int
|
|||||||
|
|
||||||
// Information about an address where we may find a peer
|
// Information about an address where we may find a peer
|
||||||
type Target struct {
|
type Target struct {
|
||||||
attempting bool // are we currently attempting to connect there?
|
attempting bool // are we currently attempting to connect there?
|
||||||
tryAfter time.Time // next time to try this address
|
tryAfter time.Time // next time to try this address
|
||||||
tryInterval time.Duration // backoff time on next failure
|
tryInterval time.Duration // backoff time on next failure
|
||||||
}
|
}
|
||||||
|
|
||||||
// UDPSender interface and implementations
|
// UDPSender interface and implementations
|
||||||
|
|||||||
Reference in new issue
Block a user