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

Fix build sync spec #7086

Merged
1 commit merged into from
Sep 11, 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
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