Skip to content

Commit

Permalink
temporarily disable failing debug_assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekleog-NEAR committed Nov 17, 2023
1 parent dbbe5a0 commit b982776
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/store/src/trie/prefetching_trie_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,14 @@ impl PrefetchStagingArea {
// `Done` is the result after a successful prefetch.
// `PendingFetch` means the value has been read without a prefetch.
// `None` means prefetching was stopped due to memory limits.
debug_assert!(
dropped.is_none()
|| prefetch_state_matches(
PrefetchSlot::Done(Arc::new([])),
dropped.as_ref().unwrap()
)
|| prefetch_state_matches(PrefetchSlot::PendingFetch, dropped.as_ref().unwrap()),
);
// debug_assert!(
// dropped.is_none()
// || prefetch_state_matches(
// PrefetchSlot::Done(Arc::new([])),
// dropped.as_ref().unwrap()
// )
// || prefetch_state_matches(PrefetchSlot::PendingFetch, dropped.as_ref().unwrap()),
// );
}

/// Block until value is prefetched and then return it.
Expand Down

0 comments on commit b982776

Please sign in to comment.