summaryrefslogtreecommitdiffstats
path: root/src/api/peers.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-23 19:59:48 +0200
committertv <tv@krebsco.de>2026-10-23 19:59:48 +0200
commitec70d855ef9e62ca33c31e86dbb6880bdd8eeec4 (patch)
tree08928dfda97f858cf9636c15c15afb3fcd1dfae8 /src/api/peers.rs
parenta45dae16562bb3f182834d3552ac9e5888a65e84 (diff)
introduce sync session
SyncSession holds all fields that get reset by reset_sync()
Diffstat (limited to 'src/api/peers.rs')
-rw-r--r--src/api/peers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/peers.rs b/src/api/peers.rs
index 6637da4..ce41776 100644
--- a/src/api/peers.rs
+++ b/src/api/peers.rs
@@ -119,7 +119,7 @@ pub(crate) async fn list_peers(
.last_seen
.map(|t| now.saturating_duration_since(t).as_secs()),
dormant_for_secs,
- has_pending_delivery: ps.pending_outbound_sync.is_some(),
+ has_pending_delivery: ps.sync.outbound.is_some(),
epoch: ps.epoch.map(EpochInfo::from),
same_epoch: ps.epoch.map(|epoch| epoch == local_epoch),
});