Skip to content
Snippets Groups Projects
Commit ae2de4c2 authored by Ashley's avatar Ashley Committed by GitHub
Browse files

Fix build sync spec (#7086)

parent 614c6a74
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment