From fc2d07b4e393c8e0c9331d83e8381262531692b1 Mon Sep 17 00:00:00 2001 From: realbigsean Date: Mon, 13 Feb 2023 16:36:38 -0500 Subject: [PATCH] allow unused --- beacon_node/network/src/sync/network_context.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon_node/network/src/sync/network_context.rs b/beacon_node/network/src/sync/network_context.rs index cd10cf237d..beeba9e9b8 100644 --- a/beacon_node/network/src/sync/network_context.rs +++ b/beacon_node/network/src/sync/network_context.rs @@ -560,7 +560,8 @@ impl SyncNetworkContext { /// Check whether a batch for this epoch (and only this epoch) should request just blocks or /// blocks and blobs. - pub fn batch_type(&self, #[cfg(not(test))] epoch: types::Epoch) -> ByRangeRequestType { + #[allow(unused)] + pub fn batch_type(&self, epoch: types::Epoch) -> ByRangeRequestType { if super::backfill_sync::BACKFILL_EPOCHS_PER_BATCH * super::range_sync::EPOCHS_PER_BATCH != 1 {