mirror of https://github.com/status-im/nim-eth.git
Do not send empty messages packets at interval
This commit is contained in:
parent
146eeddd65
commit
2dcccf19b2
|
@ -270,6 +270,7 @@ proc processQueue(peer: Peer) =
|
||||||
envelopes.add(message.env)
|
envelopes.add(message.env)
|
||||||
wakuPeer.received.incl(message)
|
wakuPeer.received.incl(message)
|
||||||
|
|
||||||
|
if envelopes.len() > 0:
|
||||||
trace "Sending envelopes", amount=envelopes.len
|
trace "Sending envelopes", amount=envelopes.len
|
||||||
# Ignore failure of sending messages, this could occur when the connection
|
# Ignore failure of sending messages, this could occur when the connection
|
||||||
# gets dropped
|
# gets dropped
|
||||||
|
|
|
@ -265,6 +265,7 @@ proc processQueue(peer: Peer) =
|
||||||
envelopes.add(message.env)
|
envelopes.add(message.env)
|
||||||
whisperPeer.received.incl(message)
|
whisperPeer.received.incl(message)
|
||||||
|
|
||||||
|
if envelopes.len() > 0:
|
||||||
trace "Sending envelopes", amount=envelopes.len
|
trace "Sending envelopes", amount=envelopes.len
|
||||||
# Ignore failure of sending messages, this could occur when the connection
|
# Ignore failure of sending messages, this could occur when the connection
|
||||||
# gets dropped
|
# gets dropped
|
||||||
|
|
Loading…
Reference in New Issue