Skip to content

Commit

Permalink
feat: change EN main node fetcher concurrency factor (#1317)
Browse files Browse the repository at this point in the history
Decreasing EN concurrency so that it doesn't trigger 429 errors
It's mostly a band-aid until we fix it in a more organized way

Signed-off-by: tomg10 <lemures64@gmail.com>
  • Loading branch information
tomg10 authored Mar 1, 2024
1 parent e81f080 commit d4235b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/zksync_core/src/sync_layer/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ use zksync_web3_decl::{
use super::metrics::{CachedMethod, FETCHER_METRICS};

/// Maximum number of concurrent requests to the main node.
const MAX_CONCURRENT_REQUESTS: usize = 100;
/// It can' be very high to not trigger rate limiting.
const MAX_CONCURRENT_REQUESTS: usize = 30;

/// Client abstracting connection to the main node.
#[async_trait]
Expand Down

0 comments on commit d4235b5

Please sign in to comment.