Skip to content

Commit

Permalink
chore: remove brackets (#5762)
Browse files Browse the repository at this point in the history
Description
---
removes brackets from the code
  • Loading branch information
SWvheerden authored Sep 12, 2023
1 parent 1054868 commit 65c178b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,9 @@ impl<'a, B: BlockchainBackend + 'static> HeaderSynchronizer<'a, B> {
node_id: &NodeId,
max_latency: Duration,
) -> Result<SyncPeer, BlockHeaderSyncError> {
{
let sync_peer = &self.sync_peers[peer_index];
self.hooks.call_on_starting_hook(sync_peer);
}
let sync_peer = &self.sync_peers[peer_index];
self.hooks.call_on_starting_hook(sync_peer);

let mut conn = self.dial_sync_peer(node_id).await?;
debug!(
target: LOG_TARGET,
Expand Down

0 comments on commit 65c178b

Please sign in to comment.