Track which connections we are currently attempting a connect on, so we don’t do multiple attempts at the same time to the same endpoint
This commit is contained in:
1 parent
a5be96d35f
commit
09271f4848
2 files changed
+28
-3
No files matched your search
@@ -159,11 +159,17 @@ type ConnectionMakerInteraction struct {
|
||||
name PeerName
|
||||
}
|
||||
|
||||
type ConnectionMakerPair struct {
|
||||
foundAt string
|
||||
name PeerName
|
||||
}
|
||||
|
||||
type ConnectionMaker struct {
|
||||
router *Router
|
||||
queryChan chan<- *ConnectionMakerInteraction
|
||||
activeConnections map[string]string
|
||||
failedConnections map[PeerName]*FailedConnection
|
||||
attemptingConnections map[ConnectionMakerPair]bool
|
||||
}
|
||||
|
||||
type FailedConnection struct {
|
||||
|
||||
Reference in new issue
Block a user