diff options
Diffstat (limited to 'src/transport/stats.rs')
| -rw-r--r-- | src/transport/stats.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/transport/stats.rs b/src/transport/stats.rs index 6b1a42f..12b2c99 100644 --- a/src/transport/stats.rs +++ b/src/transport/stats.rs @@ -36,7 +36,8 @@ impl TransportStats { #[derive(Debug, Clone, Default, Serialize)] #[serde(rename_all = "camelCase")] pub(crate) struct PathsStats { - /// Every path measured: those of peers this node chose among lately. + /// Every path measured: those of peers this node chose among lately, and those its + /// keepalives went over. pub(crate) paths: Vec<PathInfo>, #[serde(flatten)] pub(crate) counts: PathCounts, @@ -48,7 +49,8 @@ pub(crate) struct PathsStats { pub(crate) struct PathInfo { /// `<scheme>:<transport identity>`. pub(crate) address: String, - /// Smoothed round-trip time of its PINGs; absent before an answer. + /// Smoothed round-trip time of its PINGs (ours, and our keepalives); absent before + /// an answer. pub(crate) rtt_ms: Option<f64>, /// Its PINGs went unanswered three times in a row, or a send there failed within a /// minute: used only when no other path works. |
