we no longer need to Refresh() in CM status
since CM now gets an event - ConnectionCreated - for new connections.
This commit is contained in:
1 parent
fc6f3993bd
commit
e68ca761a9
1 file changed
-6
@@ -162,12 +162,6 @@ func NewBroadcastRouteStatusSlice(routes *Routes) []BroadcastRouteStatus {
|
||||
}
|
||||
|
||||
func NewLocalConnectionStatusSlice(cm *ConnectionMaker) []LocalConnectionStatus {
|
||||
// We need to Refresh first in order to clear out any 'attempting'
|
||||
// connections from cm.targets that have been established since
|
||||
// the last run of cm.checkStateAndAttemptConnections. These
|
||||
// entries are harmless but do represent stale state that we do
|
||||
// not want to report.
|
||||
cm.Refresh()
|
||||
resultChan := make(chan []LocalConnectionStatus, 0)
|
||||
cm.actionChan <- func() bool {
|
||||
var slice []LocalConnectionStatus
|
||||
|
||||
Reference in new issue
Block a user