Merge pull request #2744 from kmlebedev/issues_2545

avoid connect to the old filler address
This commit is contained in:
Chris Lu 2022-03-26 13:02:49 -07:00 committed by GitHub
commit 3153c836a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,9 +76,6 @@ func (ma *MetaAggregator) setActive(address pb.ServerAddress, isActive bool) (no
}
} else {
if _, found := ma.peerStatues[address]; found {
ma.peerStatues[address] -= 1
}
if ma.peerStatues[address] <= 0 {
delete(ma.peerStatues, address)
}
}