mirror of https://github.com/certusone/vouch.git
Wait for waitgroup to complete.
This commit is contained in:
parent
073eff2515
commit
fa7e37fee7
|
@ -193,6 +193,7 @@ func (s *Service) refreshAccounts(ctx context.Context) error {
|
|||
log.Trace().Dur("elapsed", time.Since(started)).Int("accounts", len(walletAccounts)).Msg("Imported accounts")
|
||||
}(ctx, sem, &wg, i, &accountsMu)
|
||||
}
|
||||
wg.Wait()
|
||||
log.Trace().Int("accounts", len(accounts)).Msg("Obtained accounts")
|
||||
|
||||
if len(accounts) == 0 && len(s.accounts) != 0 {
|
||||
|
|
Loading…
Reference in New Issue