diff --git a/pubsub.go b/pubsub.go index b072826..54f82b1 100644 --- a/pubsub.go +++ b/pubsub.go @@ -291,7 +291,7 @@ func (p *PubSub) processLoop(ctx context.Context) { for { select { case pid := <-p.newPeers: - if p.blacklist.Contains(pid) { + if _, ok := p.peers[pid]; ok { log.Warning("already have connection to peer: ", pid) continue }