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

Commit

Permalink
network: remove unused variable (#6460)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva authored Jun 22, 2020
1 parent 94b3812 commit 50eb257
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client/network/src/protocol/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,6 @@ impl<B: BlockT> ChainSync<B> {
let blocks = &mut self.blocks;
let attrs = &self.required_block_attributes;
let fork_targets = &mut self.fork_targets;
let mut have_requests = false;
let last_finalized = self.client.info().finalized_number;
let best_queued = self.best_queued_number;
let client = &self.client;
Expand Down Expand Up @@ -681,7 +680,6 @@ impl<B: BlockT> ChainSync<B> {
peer.common_number,
req,
);
have_requests = true;
Some((id, req))
} else if let Some((hash, req)) = fork_sync_request(
id,
Expand All @@ -697,7 +695,6 @@ impl<B: BlockT> ChainSync<B> {
) {
trace!(target: "sync", "Downloading fork {:?} from {}", hash, id);
peer.state = PeerSyncState::DownloadingStale(hash);
have_requests = true;
Some((id, req))
} else {
None
Expand Down

0 comments on commit 50eb257

Please sign in to comment.