Skip to content

Commit

Permalink
Fix WASM instance warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Apr 26, 2024
1 parent e0b3f7d commit e8193e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/sc-consensus-subspace/src/archiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ use subspace_core_primitives::objects::BlockObjectMapping;
use subspace_core_primitives::{BlockNumber, RecordedHistorySegment, SegmentHeader, SegmentIndex};
use tracing::{debug, info, warn};

/// This corresponds to default value of `--max-runtime-instances` in Substrate
const BLOCKS_TO_ARCHIVE_CONCURRENCY: usize = 8;
/// Number of WASM instances is 8, this is a bit lower to avoid warnings exceeding number of
/// instances
const BLOCKS_TO_ARCHIVE_CONCURRENCY: usize = 6;

/// How deep (in segments) should block be in order to be finalized.
///
Expand Down

0 comments on commit e8193e4

Please sign in to comment.