Remove debug assertion (#9283)

This commit is contained in:
Arkadiy Paronyan authored and GitHub committed 2021-07-06 09:51:20 +00:00
1 parent 201a41be34
commit e755577c3f
1 file changed
+2 -1
@@ -524,7 +524,8 @@ impl<BlockHash: Hash, Key: Hash> NonCanonicalOverlay<BlockHash, Key> {
/// Pin state values in memory
pub fn pin(&mut self, hash: &BlockHash) {
if self.pending_insertions.contains(hash) {
debug_assert!(false, "Trying to pin pending state");
// Pinning pending state is not implemented. Pending states
// won't be pruned for quite some time anyway, so it's not a big deal.
return;
}
let refs = self.pinned.entry(hash.clone()).or_default();