fix a couple new lints

This commit is contained in:
realbigsean
2023-02-13 17:13:47 -05:00
parent cd8757de1c
commit d2ecbd942e
3 changed files with 4 additions and 2 deletions

View File

@@ -562,6 +562,8 @@ impl<T: BeaconChainTypes> SyncNetworkContext<T> {
/// blocks and blobs.
#[allow(unused)]
pub fn batch_type(&self, epoch: types::Epoch) -> ByRangeRequestType {
// Induces a compile time panic if this doesn't hold true.
#[allow(clippy::assertions_on_constants)]
const _: () = assert!(
super::backfill_sync::BACKFILL_EPOCHS_PER_BATCH == 1
&& super::range_sync::EPOCHS_PER_BATCH == 1,