projects
/
rapid-gossip-sync-server
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c20eda
)
Increase reminder snapshot scope interval threshold.
author
Arik Sosman
<git@arik.io>
Fri, 10 May 2024 16:41:30 +0000
(09:41 -0700)
committer
Arik Sosman
<git@arik.io>
Fri, 10 May 2024 16:41:30 +0000
(09:41 -0700)
src/lookup.rs
patch
|
blob
|
history
diff --git
a/src/lookup.rs
b/src/lookup.rs
index 454dc7ae78c7d4f9fb5747a016a4ff4bbd8b39a2..fc0385c8d46ac56a107b3591006bfaa915800317 100644
(file)
--- a/
src/lookup.rs
+++ b/
src/lookup.rs
@@
-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 > (
4
0 * 3600);
+ let is_reminder_scope = snapshot_scope > (
5
0 * 3600);
log_debug!(logger, "Snapshot scope: {}s", snapshot_scope);
(is_reminder_hour && is_reminder_day) || is_reminder_scope