diff --git a/gossipsub.go b/gossipsub.go index d747029..feb5f6c 100644 --- a/gossipsub.go +++ b/gossipsub.go @@ -98,7 +98,6 @@ type connectInfo struct { func (gs *GossipSubRouter) Protocols() []protocol.ID { return []protocol.ID{GossipSubID_v11, GossipSubID_v10, FloodSubID} - return []protocol.ID{GossipSubID_v11, GossipSubID, FloodSubID} } func (gs *GossipSubRouter) Attach(p *PubSub) { @@ -864,7 +863,6 @@ func (gs *GossipSubRouter) getPeers(topic string, count int, filter func(peer.ID peers := make([]peer.ID, 0, len(tmap)) for p := range tmap { if (gs.peers[p] == GossipSubID_v10 || gs.peers[p] == GossipSubID_v11) && filter(p) { - if (gs.peers[p] == GossipSubID || gs.peers[p] == GossipSubID_v11) && filter(p) { peers = append(peers, p) } }