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

Commit

Permalink
fix: increase channel size, increase interval
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberb committed Apr 15, 2024
1 parent d6673cb commit cc2eb0e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 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 = 10;
pub const INTERVAL_SECONDS: u64 = 2;
pub const LIMIT_PER_SUBNET: usize = 100;

const fn default_interval_seconds() -> u64 {
Expand Down
2 changes: 1 addition & 1 deletion crates/topos-tce-synchronizer/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl Default for SynchronizerBuilder {
network_client: None,
store: None,
config: SynchronizationConfig::default(),
event_channel_size: 100,
event_channel_size: 10_000,
shutdown: None,
}
}
Expand Down
1 change: 1 addition & 0 deletions crates/topos-tce/src/app_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ impl AppContext {
) {
loop {
tokio::select! {
biased;

Some(delivery) = broadcast_stream.next() => {
let certificate_id = delivery.0.certificate.id;
Expand Down
1 change: 0 additions & 1 deletion crates/topos-tce/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ pub async fn run(
debug!("P2P layer bootstrapped");

debug!("Creating the Synchronizer");

let (synchronizer_runtime, synchronizer_stream) =
topos_tce_synchronizer::Synchronizer::builder()
.with_config(config.synchronization.clone())
Expand Down

0 comments on commit cc2eb0e

Please sign in to comment.