Skip to content

Commit

Permalink
Fix data race
Browse files Browse the repository at this point in the history
  • Loading branch information
MartyHub committed Apr 2, 2023
1 parent c74e632 commit a3ffe96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ func (c Client) worker(in chan *account, out chan<- *account) {
c.params.Errorf("Failed to get %v", acct)

if acct.retry(c.params.MaxTries) {
go func() {
go func(acct *account) {
time.Sleep(time.Duration(acct.Try*acct.Try) * c.params.Wait)
in <- acct
}()
}(acct)

continue
}
Expand Down

0 comments on commit a3ffe96

Please sign in to comment.