Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: adjust interval for state and pending sync
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberb committed Apr 17, 2024
1 parent e05d1d0 commit fa28963
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/topos-config/src/tce/synchronization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl Default for SynchronizationConfig {
}

impl SynchronizationConfig {
pub const INTERVAL_SECONDS: u64 = 2;
pub const INTERVAL_SECONDS: u64 = 20;
pub const LIMIT_PER_SUBNET: usize = 100;

const fn default_interval_seconds() -> u64 {
Expand Down
2 changes: 1 addition & 1 deletion crates/topos-tce-broadcast/src/task_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl TaskManager {
// }

pub async fn run(mut self, shutdown_receiver: CancellationToken) {
let mut pending_interval = tokio::time::interval(Duration::from_millis(10));
let mut pending_interval = tokio::time::interval(Duration::from_millis(100));
// let mut abort_interval = tokio::time::interval(Duration::from_millis(800));

loop {
Expand Down

0 comments on commit fa28963

Please sign in to comment.