Remove unused stats

This commit is contained in:
maride 2020-06-20 20:39:54 +02:00
parent 8f3f32df69
commit 0e770490e3

View File

@ -125,13 +125,11 @@ func removeLocalPeers() {
}
// Check all peers against all addresses
removed := 0
for i := 0; i < len(peers); i++ {
for _, p := range blacklistPeers {
if peers[i].Address == p.Address {
// Found match, remove that peer
peers = append(peers[:i], peers[i+1:]...)
removed++
i--
break
}