Skip to content

Commit

Permalink
filter protocol simplify logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivansete-status committed Jan 31, 2025
1 parent 6e15a2d commit 2b6a228
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions waku/waku_filter_v2/protocol.nim
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ proc pushToPeer(
if connRes.isNone():
## We do not remove this peer, but allow the underlying peer manager
## to do so if it is deemed necessary
error "pushToPeer no connection to peer", peerId = shortLog(peerId)
return err("pushToPeer no connection to peer: " & shortLog(peerId))

let newConn = connRes.get()
Expand Down Expand Up @@ -232,10 +233,6 @@ proc pushToPeers(

await allFutures(pushFuts)

for fut in pushFuts:
if fut.read().isErr():
error "error pushing message", error = fut.read().error

proc maintainSubscriptions*(wf: WakuFilter) {.async.} =
debug "maintaining subscriptions"

Expand Down

0 comments on commit 2b6a228

Please sign in to comment.