mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-02 22:17:26 +00:00
Rewrap all comments to 100 line width (#9490)
* reformat everything again * manual formatting * last manual fix * Fix build
This commit is contained in:
@@ -219,9 +219,10 @@ impl<BlockHash: Hash, Key: Hash> RefWindow<BlockHash, Key> {
|
||||
/// Revert all pending changes
|
||||
pub fn revert_pending(&mut self) {
|
||||
// Revert pending deletions.
|
||||
// Note that pending insertions might cause some existing deletions to be removed from `death_index`
|
||||
// We don't bother to track and revert that for now. This means that a few nodes might end up no being
|
||||
// deleted in case transaction fails and `revert_pending` is called.
|
||||
// Note that pending insertions might cause some existing deletions to be removed from
|
||||
// `death_index` We don't bother to track and revert that for now. This means that a few
|
||||
// nodes might end up no being deleted in case transaction fails and `revert_pending` is
|
||||
// called.
|
||||
self.death_rows.truncate(self.death_rows.len() - self.pending_canonicalizations);
|
||||
if self.count_insertions {
|
||||
let new_max_block = self.death_rows.len() as u64 + self.pending_number;
|
||||
|
||||
Reference in New Issue
Block a user