refactor: 'enum' -> bool
This commit is contained in:
1 parent
ce2d3ff30a
commit
4e442393b2
2 files changed
+6
-13
No files matched your search
@@ -169,7 +169,7 @@ type ConnectionState int
|
||||
|
||||
// Information about an address where we may find a peer
|
||||
type Target struct {
|
||||
state ConnectionState
|
||||
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
|
||||
attemptCount int
|
||||
|
||||
Reference in new issue
Block a user