From 878362b03f4eedb90dd7693f53fe616d4d7a357d Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 25 Jan 2024 13:47:58 +0100 Subject: [PATCH] separate iwant replies from control msgs and put them in the non-priority queue --- libp2p/protocols/pubsub/gossipsub.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libp2p/protocols/pubsub/gossipsub.nim b/libp2p/protocols/pubsub/gossipsub.nim index dd70f06c4..63e0f1c0d 100644 --- a/libp2p/protocols/pubsub/gossipsub.nim +++ b/libp2p/protocols/pubsub/gossipsub.nim @@ -305,7 +305,10 @@ proc handleControl(g: GossipSub, peer: PubSubPeer, control: ControlMessage) = trace "sending control message", msg = shortLog(respControl), peer g.send( peer, - RPCMsg(control: some(respControl), messages: messages), true) + RPCMsg(control: some(respControl)), true) + g.send( + peer, + RPCMsg(messages: messages), false) proc validateAndRelay(g: GossipSub, msg: Message,