mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 03:15:42 +00:00
Remove debug assertion (#9283)
This commit is contained in:
@@ -524,7 +524,8 @@ impl<BlockHash: Hash, Key: Hash> NonCanonicalOverlay<BlockHash, Key> {
|
|||||||
/// Pin state values in memory
|
/// Pin state values in memory
|
||||||
pub fn pin(&mut self, hash: &BlockHash) {
|
pub fn pin(&mut self, hash: &BlockHash) {
|
||||||
if self.pending_insertions.contains(hash) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
let refs = self.pinned.entry(hash.clone()).or_default();
|
let refs = self.pinned.entry(hash.clone()).or_default();
|
||||||
|
|||||||
Reference in New Issue
Block a user