Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

2 workers wirth same tag, one disable second crash #6

Closed
chavers opened this issue Mar 8, 2021 · 0 comments
Closed

2 workers wirth same tag, one disable second crash #6

chavers opened this issue Mar 8, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@chavers
Copy link
Contributor

chavers commented Mar 8, 2021

don't use math/rand with n<=0 panic
https://golang.org/pkg/math/rand/#Intn

return rand.Intn(len(*workers) - 1)

@chavers chavers added the bug Something isn't working label Mar 8, 2021
@chavers chavers self-assigned this Mar 8, 2021
chavers added a commit that referenced this issue Mar 8, 2021
@chavers chavers closed this as completed in 688e0d9 Mar 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant