diff options
Diffstat (limited to 'src/transport/mod.rs')
| -rw-r--r-- | src/transport/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs index eeb9d34..474e386 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -1004,6 +1004,13 @@ pub(crate) trait Transport: Send + Sync { None } + /// What went to `peer` went unanswered for a while (`swarm::reach`): the path in use + /// may take messages and drop them. The paths layer tries the peer's other paths + /// first and pings them all now (`paths::Paths::suspect`). By default nothing. + fn suspect(&self, peer: &str) { + let _ = peer; + } + /// Whether the transport answers PINGs with PONGs itself (the paths layer, /// `transport::paths`); if not (a bare transport, in tests), the node does. By /// default not. |
