Skip to content

Commit

Permalink
fix(snapshot): debug assertion methods
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Sep 29, 2023
1 parent 6b29454 commit a7a6b76
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/snapshot/src/snapshotter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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),
Expand Down

0 comments on commit a7a6b76

Please sign in to comment.