From e8193e42649f4ddde071f690eed6f8e11462ef45 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Fri, 26 Apr 2024 07:04:51 +0300 Subject: [PATCH] Fix WASM instance warnings --- crates/sc-consensus-subspace/src/archiver.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/sc-consensus-subspace/src/archiver.rs b/crates/sc-consensus-subspace/src/archiver.rs index ffaab89fb4..5d819cc6c9 100644 --- a/crates/sc-consensus-subspace/src/archiver.rs +++ b/crates/sc-consensus-subspace/src/archiver.rs @@ -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. ///