mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-05 06:13:10 +00:00
rename queueGossip() to enqueueGossip().
This commit is contained in:
parent
2a90debb89
commit
8d7838b031
@ -535,7 +535,7 @@ func (gs *GossipSubRouter) emitGossip(topic string, exclude map[peer.ID]struct{}
|
||||
|
||||
// Emit the IHAVE gossip to the selected peers.
|
||||
for _, p := range gpeers {
|
||||
gs.queueGossip(p, &pb.ControlIHave{TopicID: &topic, MessageIDs: mids})
|
||||
gs.enqueueGossip(p, &pb.ControlIHave{TopicID: &topic, MessageIDs: mids})
|
||||
}
|
||||
}
|
||||
|
||||
@ -555,7 +555,7 @@ func (gs *GossipSubRouter) flush() {
|
||||
}
|
||||
}
|
||||
|
||||
func (gs *GossipSubRouter) queueGossip(p peer.ID, ihave *pb.ControlIHave) {
|
||||
func (gs *GossipSubRouter) enqueueGossip(p peer.ID, ihave *pb.ControlIHave) {
|
||||
gossip := gs.gossip[p]
|
||||
gossip = append(gossip, ihave)
|
||||
gs.gossip[p] = gossip
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user