mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(net): log p2p stream flush error (#11659)
This commit is contained in:
@ -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(()))
|
||||
|
||||
Reference in New Issue
Block a user