Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transport_service: Improve logs and move code from tokio::select macro #254

Merged
merged 7 commits into from
Oct 1, 2024
5 changes: 4 additions & 1 deletion src/protocol/transport_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,10 @@ impl Stream for TransportService {
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
while let Poll::Ready(event) = self.rx.poll_recv(cx) {
match event {
None => return Poll::Ready(None),
None => {
tracing::warn!(target: LOG_TARGET, "transport service closed");
return Poll::Ready(None);
}
Some(InnerTransportEvent::ConnectionEstablished {
peer,
endpoint,
Expand Down
Loading