summaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-24 02:49:56 +0200
committertv <tv@krebsco.de>2026-10-24 02:54:06 +0200
commit9ef3dc3e7408caa658bb14b9cec1e0144d372a59 (patch)
tree8d4378b5b600236f6674dccbb517e29684a22a7a /src/api
parent4280d57665328913ae920aacb4f06ac51ad45941 (diff)
retry using fresh messages
Don't store encoded messages but retry using a newly generated one. That way any accumulated changes can be delivered at once.
Diffstat (limited to 'src/api')
-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 3317185..aeb4373 100644
--- a/src/api/peers.rs
+++ b/src/api/peers.rs
@@ -125,7 +125,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.sync.outbound.is_some(),
+ has_pending_delivery: ps.sync.sending.is_some() || ps.sync.retry_at.is_some(),
epoch: ps.epoch.map(EpochInfo::from),
same_epoch: ps.epoch.map(|epoch| epoch == local_epoch),
heads: ps.reported_heads,