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

Commit

Permalink
Fix build sync spec (#7086)
Browse files Browse the repository at this point in the history
  • Loading branch information
expenses authored Sep 11, 2020
1 parent 08828f2 commit 5fa2fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/cli/src/commands/build_sync_spec_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl BuildSyncSpecCmd {
CL: sp_blockchain::HeaderBackend<B>,
{
if self.sync_first {
network_status_sinks.network_status(std::time::Duration::from_secs(1)).filter(|(status, _)| {
network_status_sinks.status_stream(std::time::Duration::from_secs(1)).filter(|status| {
ready(status.sync_state == sc_network::SyncState::Idle && status.num_sync_peers > 0)
}).into_future().map(drop).await;
}
Expand Down

0 comments on commit 5fa2fdd

Please sign in to comment.