separate iwant replies from control msgs and put them in the non-priority queue

This commit is contained in:
Diego 2024-01-25 13:47:58 +01:00
parent 297c7ebc25
commit 878362b03f
No known key found for this signature in database
GPG Key ID: C9DAC9BF68D1F806
1 changed files with 4 additions and 1 deletions

View File

@ -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,