network: remove unused variable (#6460)

This commit is contained in:
André Silva
2020-06-22 19:41:37 +01:00
committed by GitHub
parent a2d4b7d848
commit d9776d8233
@@ -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;
@@ -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,
@@ -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