aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/peer/inbound.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/swarm/peer/inbound.rs')
-rw-r--r--src/swarm/peer/inbound.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/swarm/peer/inbound.rs b/src/swarm/peer/inbound.rs
index b57feaf..18d29d5 100644
--- a/src/swarm/peer/inbound.rs
+++ b/src/swarm/peer/inbound.rs
@@ -33,7 +33,7 @@ pub(crate) async fn handle_message(
return Ok(());
}
// PING and PONG only say the peer is alive (`keepalive::note_alive`).
- if matches!(message, ParsedMessage::Ping(_) | ParsedMessage::Pong(_)) {
+ if matches!(message, ParsedMessage::Ping(_) | ParsedMessage::Pong { .. }) {
note_alive(state, &peer, &message).await;
return Ok(());
}
@@ -165,7 +165,7 @@ pub(crate) async fn handle_message(
transport::ParsedMessage::Who(_)
| transport::ParsedMessage::Me(_)
| transport::ParsedMessage::Ping(_)
- | transport::ParsedMessage::Pong(_) => {}
+ | transport::ParsedMessage::Pong { .. } => {}
}
Ok(())