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

Commit

Permalink
feat(concurrency): implement Default for ConcurrencyConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
barak-b-starkware committed Jun 5, 2024
1 parent 43bdffe commit c85364c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/blockifier/src/blockifier/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ pub struct TransactionExecutorConfig {
pub concurrency_config: ConcurrencyConfig,
}

#[derive(Debug, Default, Clone)]
#[derive(Debug, Clone)]
pub struct ConcurrencyConfig {
pub enabled: bool,
pub n_workers: usize,
pub chunk_size: usize,
}

impl Default for ConcurrencyConfig {
fn default() -> Self {
Self { enabled: false, n_workers: 4, chunk_size: 64 }
}
}

0 comments on commit c85364c

Please sign in to comment.