Attempt re-connection immediately when notified of a broken connection
This commit is contained in:
1 parent
a2f725c627
commit
2720d24183
1 file changed
+1
-1
+1
-1
@@ -76,8 +76,8 @@ func (cm *ConnectionMaker) queryLoop(queryChan <-chan *ConnectionMakerInteractio
|
||||
if target, found := cm.targets[query.address]; found {
|
||||
target.attempting = false
|
||||
target.tryAfter, target.tryInterval = tryAfter(target.tryInterval)
|
||||
maybeTick()
|
||||
}
|
||||
cm.checkStateAndAttemptConnections(time.Now())
|
||||
default:
|
||||
log.Fatal("Unexpected connection maker query:", query)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user