Skip to content

Commit

Permalink
[fix] Set BLOCK_CACHE_SIZE to 1 in epoch manager for no_cache feature (
Browse files Browse the repository at this point in the history
…#12338)

Auto fixed issue #5080
  • Loading branch information
shreyan-gupta authored Oct 30, 2024
1 parent daa67a3 commit 0e776fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/epoch-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mod validator_selection;
mod validator_stats;

const EPOCH_CACHE_SIZE: usize = if cfg!(feature = "no_cache") { 1 } else { 50 };
const BLOCK_CACHE_SIZE: usize = if cfg!(feature = "no_cache") { 5 } else { 1000 }; // TODO(#5080): fix this
const BLOCK_CACHE_SIZE: usize = if cfg!(feature = "no_cache") { 1 } else { 1000 };
const AGGREGATOR_SAVE_PERIOD: u64 = 1000;

/// In the current architecture, various components have access to the same
Expand Down

0 comments on commit 0e776fe

Please sign in to comment.