Remove debug assertion (#9283)

This commit is contained in:
Arkadiy Paronyan
2021-07-06 11:51:20 +02:00
committed by GitHub
parent 201a41be34
commit e755577c3f
@@ -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();