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 6, 2024
1 parent 3719ff4 commit 12572b9
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: 0, chunk_size: 0 }
}
}

0 comments on commit 12572b9

Please sign in to comment.