Skip to content

Commit

Permalink
call unpin only if it was pinned
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian committed Aug 28, 2023
1 parent 6a713ed commit a3f6021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polkadot/node/core/chain-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ where
if *count == 0 {
let _ = subsystem.pinned_blocks.remove(&hash);
}
subsystem.client.unpin_block(hash);
}
subsystem.client.unpin_block(hash);
// always succeeds
subsystem.metrics.on_request(true);
},
Expand Down

0 comments on commit a3f6021

Please sign in to comment.