Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Update client/network/sync/src/blocks.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr authored Jun 23, 2022
1 parent 725ead1 commit 913cb5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/network/sync/src/blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl<B: BlockT> BlockCollection<B> {
}

pub fn clear_queued(&mut self, from_hash: &B::Hash) {
match self.queued_blocks.get(from_hash) {
match self.queued_blocks.remove(from_hash) {
None => {
debug!(target: "sync", "Can't clear unknown queued blocks from {:?}", from_hash);
},
Expand All @@ -221,7 +221,6 @@ impl<B: BlockT> BlockCollection<B> {
self.blocks.remove(&block_num);
block_num += One::one();
}
self.queued_blocks.remove(from_hash);
trace!(target: "sync", "Cleared blocks from {:?} to {:?}", from, to);
},
}
Expand Down

0 comments on commit 913cb5e

Please sign in to comment.