New implementation of ConnectionMaker just periodically scanning who we need to connect to
This commit is contained in:
1 parent
42ce45dd55
commit
84aeaf340a
4 files changed
+98
-61
No files matched your search
@@ -155,8 +155,8 @@ type Topology struct {
|
||||
|
||||
type ConnectionMakerInteraction struct {
|
||||
Interaction
|
||||
acceptAnyPeer bool
|
||||
address string
|
||||
isCmdLine bool
|
||||
address string
|
||||
}
|
||||
|
||||
type ConnectionMaker struct {
|
||||
@@ -169,11 +169,11 @@ type ConnectionState int
|
||||
|
||||
// Information about an address where we may find a peer
|
||||
type Target struct {
|
||||
acceptAnyPeer bool // was this address given to us on the command line?
|
||||
state ConnectionState
|
||||
tryAfter time.Time // next time to try this address
|
||||
tryInterval time.Duration // backoff time on next failure
|
||||
attemptCount int
|
||||
isCmdLine bool // was this address given to us on the command line?
|
||||
state ConnectionState
|
||||
tryAfter time.Time // next time to try this address
|
||||
tryInterval time.Duration // backoff time on next failure
|
||||
attemptCount int
|
||||
}
|
||||
|
||||
// UDPSender interface and implementations
|
||||
|
||||
Reference in new issue
Block a user