From 5538794d7c9bd9a2db301c09380e4813d01ef4f2 Mon Sep 17 00:00:00 2001 From: phiresky Date: Thu, 30 May 2024 14:40:58 +0200 Subject: [PATCH] move comment --- crates/federate/src/inboxes.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/federate/src/inboxes.rs b/crates/federate/src/inboxes.rs index 17dac65f4..72e65fdf5 100644 --- a/crates/federate/src/inboxes.rs +++ b/crates/federate/src/inboxes.rs @@ -136,9 +136,10 @@ impl CommunityInboxCollector { instance_id: InstanceId, last_fetch: DateTime, ) -> Result<(HashMap>, DateTime)> { + // update to time before fetch to ensure overlap. subtract 10s to ensure overlap even if + // published date is not exact let new_last_fetch = - Utc::now() - chrono::TimeDelta::try_seconds(10).expect("TimeDelta out of bounds"); // update to time before fetch to ensure overlap. subtract 10s to ensure overlap even if - // published date is not exact + Utc::now() - chrono::TimeDelta::try_seconds(10).expect("TimeDelta out of bounds"); Ok(( CommunityFollowerView::get_instance_followed_community_inboxes( &mut self.pool(),