Skip to content

Commit

Permalink
chore(sidecar): reduce chunk size length for getting proposer statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Oct 31, 2024
1 parent 337b055 commit 6da7aeb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bolt-sidecar/src/chain_io/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::config::chain::Chain;

use super::utils::{self, CompressedHash};

const CHUNK_SIZE: usize = 1_000;
const CHUNK_SIZE: usize = 100;

/// A wrapper over a BoltManagerContract that exposes various utility methods.
#[derive(Debug, Clone)]
Expand Down Expand Up @@ -72,7 +72,8 @@ impl BoltManager {
let hashes_chunk = hashes.drain(..CHUNK_SIZE.min(hashes.len())).collect::<Vec<_>>();

debug!(
"fetching proposer statuses for chunk {} of {}",
"fetching {} proposer statuses for chunk {} of {}",
hashes_chunk.len(),
i,
hashes.len().div_ceil(CHUNK_SIZE)
);
Expand Down

0 comments on commit 6da7aeb

Please sign in to comment.