network: remove useless checks in discovery
These are useless.
This commit is contained in:
parent
0ed5dca9a2
commit
77a50d6dc6
1 changed files with 2 additions and 6 deletions
|
@ -186,13 +186,9 @@ func (d *DefaultDiscovery) run() {
|
|||
|
||||
case addr := <-d.connectedCh:
|
||||
delete(d.unconnectedAddrs, addr)
|
||||
if !d.connectedAddrs[addr] {
|
||||
d.connectedAddrs[addr] = true
|
||||
}
|
||||
d.connectedAddrs[addr] = true
|
||||
case addr := <-d.goodCh:
|
||||
if !d.goodAddrs[addr] {
|
||||
d.goodAddrs[addr] = true
|
||||
}
|
||||
d.goodAddrs[addr] = true
|
||||
case addr := <-d.unconnectedCh:
|
||||
delete(d.connectedAddrs, addr)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue