allow unused

This commit is contained in:
realbigsean 2023-02-13 16:36:38 -05:00
parent 28702c9d5d
commit fc2d07b4e3
No known key found for this signature in database
GPG Key ID: BE1B3DB104F6C788

View File

@ -560,7 +560,8 @@ impl<T: BeaconChainTypes> SyncNetworkContext<T> {
/// 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
{