add NUM_BLOCK_SENDERS

This commit is contained in:
GroovieGermanikus 2024-04-25 13:13:29 +02:00
parent fd8fb50fb2
commit d1d7a7b525
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 4 additions and 1 deletions

View File

@ -55,6 +55,8 @@ lazy_static::lazy_static! {
register_int_gauge!(opts!("bankingstage_blocks_in_rpc_queue", "Banking stage blocks in rpc queue")).unwrap();
}
const NUM_BLOCK_SENDERS: usize = 4;
pub async fn start_tracking_banking_stage_errors(
grpc_address: String,
map_of_infos: Arc<DashMap<(String, u64), TransactionInfo>>,
@ -381,7 +383,8 @@ async fn main() -> anyhow::Result<()> {
.collect_vec();
let mut block_senders = vec![];
for i in 1..=4 {
info!("Starting {} block senders");
for i in 1..=NUM_BLOCK_SENDERS {
let s = postgres::Postgres::new_with_workmem(i)
.await
.spawn_block_saver();