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

Commit 50eb257

Browse files
authored
network: remove unused variable (#6460)
1 parent 94b3812 commit 50eb257

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

client/network/src/protocol/sync.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,6 @@ impl<B: BlockT> ChainSync<B> {
651651
let blocks = &mut self.blocks;
652652
let attrs = &self.required_block_attributes;
653653
let fork_targets = &mut self.fork_targets;
654-
let mut have_requests = false;
655654
let last_finalized = self.client.info().finalized_number;
656655
let best_queued = self.best_queued_number;
657656
let client = &self.client;
@@ -681,7 +680,6 @@ impl<B: BlockT> ChainSync<B> {
681680
peer.common_number,
682681
req,
683682
);
684-
have_requests = true;
685683
Some((id, req))
686684
} else if let Some((hash, req)) = fork_sync_request(
687685
id,
@@ -697,7 +695,6 @@ impl<B: BlockT> ChainSync<B> {
697695
) {
698696
trace!(target: "sync", "Downloading fork {:?} from {}", hash, id);
699697
peer.state = PeerSyncState::DownloadingStale(hash);
700-
have_requests = true;
701698
Some((id, req))
702699
} else {
703700
None

0 commit comments

Comments
 (0)