Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vusirikala committed Jul 18, 2024
1 parent e4b1c07 commit ef47712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/src/config/quorum_store_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl Default for QuorumStoreConfig {
// TODO: on next release, remove BATCH_PADDING_BYTES
sender_max_batch_bytes: 1024 * 1024 - BATCH_PADDING_BYTES,
sender_max_num_batches: DEFAULT_MAX_NUM_BATCHES,
sender_max_total_txns: 2000,
sender_max_total_txns: 2500,
// TODO: on next release, remove DEFAULT_MAX_NUM_BATCHES * BATCH_PADDING_BYTES
sender_max_total_bytes: 4 * 1024 * 1024 - DEFAULT_MAX_NUM_BATCHES * BATCH_PADDING_BYTES,
receiver_max_batch_txns: 250,
Expand Down
2 changes: 1 addition & 1 deletion consensus/src/quorum_store/batch_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ impl BatchGenerator {
if batches.len() as u64 >= self.config.minimum_batch_size
|| (!batches.is_empty() && since_last_non_empty_pull_ms >= self.config.batch_generation_max_interval_ms) {
last_non_empty_pull = tick_start;

pulled_txns_window.push_back((tick_start, batches.len() as u64));
let persist_start = Instant::now();
let mut persist_requests = vec![];
for batch in batches.clone().into_iter() {
Expand Down

0 comments on commit ef47712

Please sign in to comment.