chore(gateway): don't log WouldBlock on WARN (#6984)

This mirrors what we do on the clients, there is no need to log
`WouldBlock` on `WARN` as those can happen during normal operation.
This commit is contained in:
Thomas Eizinger
2024-10-11 06:50:54 +11:00
committed by GitHub
parent 40fa46780f
commit 8c4f6bdb0f

View File

@@ -17,6 +17,7 @@ use futures_bounded::Timeout;
use phoenix_channel::{PhoenixChannel, PublicKeyParam};
use std::collections::BTreeSet;
use std::convert::Infallible;
use std::io;
use std::net::IpAddr;
use std::task::{Context, Poll};
use std::time::Duration;
@@ -72,6 +73,9 @@ impl Eventloop {
self.handle_tunnel_event(event);
continue;
}
Poll::Ready(Err(e)) if e.kind() == io::ErrorKind::WouldBlock => {
continue;
}
Poll::Ready(Err(e)) => {
tracing::warn!("Tunnel error: {e}");
continue;