Skip to content

Commit

Permalink
chore(net): log p2p stream flush error (paradigmxyz#11659)
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane authored Oct 11, 2024
1 parent 6d3aa5a commit c29c1f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/net/eth-wire/src/p2pstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,13 @@ where
let mut this = self.project();
loop {
match ready!(this.inner.as_mut().poll_flush(cx)) {
Err(err) => return Poll::Ready(Err(err.into())),
Err(err) => {
trace!(target: "net::p2p",
%err,
"error flushing p2p stream"
);
return Poll::Ready(Err(err.into()))
}
Ok(()) => {
let Some(message) = this.outgoing_messages.pop_front() else {
return Poll::Ready(Ok(()))
Expand Down

0 comments on commit c29c1f5

Please sign in to comment.