mirror of
https://github.com/maride/afl-transmit.git
synced 2024-11-21 23:14:25 +00:00
Remove unused stats
This commit is contained in:
parent
8f3f32df69
commit
0e770490e3
@ -125,13 +125,11 @@ func removeLocalPeers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check all peers against all addresses
|
// Check all peers against all addresses
|
||||||
removed := 0
|
|
||||||
for i := 0; i < len(peers); i++ {
|
for i := 0; i < len(peers); i++ {
|
||||||
for _, p := range blacklistPeers {
|
for _, p := range blacklistPeers {
|
||||||
if peers[i].Address == p.Address {
|
if peers[i].Address == p.Address {
|
||||||
// Found match, remove that peer
|
// Found match, remove that peer
|
||||||
peers = append(peers[:i], peers[i+1:]...)
|
peers = append(peers[:i], peers[i+1:]...)
|
||||||
removed++
|
|
||||||
i--
|
i--
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user