Merge pull request #10101 from filecoin-project/fix/listasks-wait
fix: cli: Wait for all results in GetAsks
This commit is contained in:
commit
238243cc1d
@ -1517,6 +1517,8 @@ func GetAsks(ctx context.Context, api lapi.FullNode) ([]QueriedAsk, error) {
|
|||||||
}
|
}
|
||||||
}(miner)
|
}(miner)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wg.Wait()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
loop:
|
loop:
|
||||||
@ -1590,6 +1592,8 @@ loop:
|
|||||||
lk.Unlock()
|
lk.Unlock()
|
||||||
}(miner)
|
}(miner)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wg.Wait()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
loop2:
|
loop2:
|
||||||
|
Loading…
Reference in New Issue
Block a user