Skip to content

Commit

Permalink
Merge pull request #10101 from filecoin-project/fix/listasks-wait
Browse files Browse the repository at this point in the history
fix: cli: Wait for all results in GetAsks
  • Loading branch information
magik6k authored Jan 23, 2023
2 parents e695be1 + 804bef7 commit 238243c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1517,6 +1517,8 @@ func GetAsks(ctx context.Context, api lapi.FullNode) ([]QueriedAsk, error) {
}
}(miner)
}

wg.Wait()
}()

loop:
Expand Down Expand Up @@ -1590,6 +1592,8 @@ loop:
lk.Unlock()
}(miner)
}

wg.Wait()
}()

loop2:
Expand Down

0 comments on commit 238243c

Please sign in to comment.