Commit 2a90debb authored by Raúl Kripalani's avatar Raúl Kripalani

rename pushGossip to queueGossip for accuracy.

parent 9103afa3
......@@ -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.pushGossip(p, &pb.ControlIHave{TopicID: &topic, MessageIDs: mids})
gs.queueGossip(p, &pb.ControlIHave{TopicID: &topic, MessageIDs: mids})
}
}
......@@ -555,7 +555,7 @@ func (gs *GossipSubRouter) flush() {
}
}
func (gs *GossipSubRouter) pushGossip(p peer.ID, ihave *pb.ControlIHave) {
func (gs *GossipSubRouter) queueGossip(p peer.ID, ihave *pb.ControlIHave) {
gossip := gs.gossip[p]
gossip = append(gossip, ihave)
gs.gossip[p] = gossip
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment