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

network: remove unused variable #6460

Merged
merged 1 commit into from
Jun 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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