Skip to content

Commit

Permalink
Update timer to use config
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Oct 30, 2023
1 parent 29a0100 commit b9ef8bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/bft/src/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use crate::{
Gateway,
Transport,
MAX_BATCH_DELAY,
PRIMARY_PING_INTERVAL,
};
use snarkos_node_bft_events::{CertificateRequest, CertificateResponse, Event};
use snarkos_node_bft_ledger_service::LedgerService;
Expand Down Expand Up @@ -89,7 +90,7 @@ impl<N: Network> Sync<N> {
self.handles.lock().push(tokio::spawn(async move {
loop {
// Sleep briefly to avoid triggering spam detection.
tokio::time::sleep(std::time::Duration::from_secs(10)).await;
tokio::time::sleep(std::time::Duration::from_secs(PRIMARY_PING_INTERVAL)).await;
// Perform the sync routine.
let communication = &self_.gateway;
// let communication = &node.router;
Expand Down

0 comments on commit b9ef8bd

Please sign in to comment.