fix(snapshot): debug assertion methods (#4851)

This commit is contained in:
Alexey Shekhirin
2023-09-29 11:54:23 +01:00
committed by GitHub
parent 25aed7bf51
commit 53ff254f53

View File

@ -57,7 +57,6 @@ impl SnapshotTargets {
}
/// Returns `true` if all targets are either [`None`] or multiple of `block_interval`.
#[cfg(debug_assertions)]
fn is_multiple_of_block_interval(&self, block_interval: u64) -> bool {
[
self.headers.as_ref(),
@ -70,7 +69,6 @@ impl SnapshotTargets {
// Returns `true` if all targets are either [`None`] or has beginning of the range equal to the
// highest snapshot.
#[cfg(debug_assertions)]
fn is_contiguous_to_highest_snapshots(&self, snapshots: HighestSnapshots) -> bool {
[
(self.headers.as_ref(), snapshots.headers),