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