Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdw committed Jan 16, 2024
1 parent 245865a commit 8c36e94
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions subxt/src/backend/unstable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,10 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for UnstableBackend<T> {
// Optimization: once we have a `finalized_hash`, we only care about finalized
// block refs now and can avoid bothering to save new blocks.
if finalized_hash.is_none() {
seen_blocks
.insert(ev.block_hash.hash(), (SeenBlockMarker::New, ev.block_hash));
seen_blocks.insert(
ev.block_hash.hash(),
(SeenBlockMarker::New, ev.block_hash),
);
}
}
FollowEvent::Finalized(ev) => {
Expand All @@ -485,7 +487,7 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for UnstableBackend<T> {
(SeenBlockMarker::Finalized, block_ref),
);
}
},
}
_ => {}
}
continue;
Expand Down

0 comments on commit 8c36e94

Please sign in to comment.