Increase reminder snapshot scope interval threshold.
authorArik Sosman <git@arik.io>
Fri, 10 May 2024 16:41:30 +0000 (09:41 -0700)
committerArik Sosman <git@arik.io>
Fri, 10 May 2024 16:41:30 +0000 (09:41 -0700)
src/lookup.rs

index 454dc7ae78c7d4f9fb5747a016a4ff4bbd8b39a2..fc0385c8d46ac56a107b3591006bfaa915800317 100644 (file)
@@ -107,7 +107,7 @@ pub(super) async fn fetch_channel_announcements<L: Deref>(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