From c5fb1c272982965b3ee784912614ab3ba5c66825 Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Fri, 10 May 2024 09:41:30 -0700 Subject: [PATCH] Increase reminder snapshot scope interval threshold. --- src/lookup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lookup.rs b/src/lookup.rs index 454dc7a..fc0385c 100644 --- a/src/lookup.rs +++ b/src/lookup.rs @@ -107,7 +107,7 @@ pub(super) async fn fetch_channel_announcements(delta_set: &mut DeltaS let is_reminder_day = (current_day % 5) == 0; let snapshot_scope = current_timestamp.saturating_sub(last_sync_timestamp as u64); - let is_reminder_scope = snapshot_scope > (40 * 3600); + let is_reminder_scope = snapshot_scope > (50 * 3600); log_debug!(logger, "Snapshot scope: {}s", snapshot_scope); (is_reminder_hour && is_reminder_day) || is_reminder_scope -- 2.39.5