Skip to content

Commit

Permalink
add log on txsSub error
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-lai committed Aug 28, 2024
1 parent d34a16c commit fefd8a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,8 @@ func (pm *ProtocolManager) txBroadcastLoop() {
pm.BroadcastTransactions(event.Txs, false) // Only then announce to the rest

// Err() channel will be closed when unsubscribing.
case <-pm.txsSub.Err():
case e := <-pm.txsSub.Err():
log.Error("[Liam] [txBroadcastLoop] txsSub has error", "error", e.Error())
return
}
}
Expand Down

0 comments on commit fefd8a9

Please sign in to comment.