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:
Bryan Boreham committed 2014-09-05 11:16:13 +01:00
1 parent a5be96d35f
commit 09271f4848
2 files changed
+28 -3

No files matched your search

+6
View File
@@ -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 {