Skip to content

Commit

Permalink
Lower new message threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
aarani committed Feb 14, 2023
1 parent 1d87d23 commit da85ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub(crate) async fn download_gossip(persistence_sender: mpsc::Sender<GossipMessa

let was_previously_caught_up_with_gossip = is_caught_up_with_gossip;
// TODO: make new message threshold (20) adjust based on connected peer count
is_caught_up_with_gossip = new_message_count < 20 && previous_announcement_count > 0 && previous_update_count > 0;
is_caught_up_with_gossip = new_message_count < 1 && previous_announcement_count > 0 && previous_update_count > 0;
if new_message_count > 0 {
latest_new_gossip_time = Instant::now();
}
Expand Down

0 comments on commit da85ef2

Please sign in to comment.