Skip to content

Commit

Permalink
fix for wrong bot index
Browse files Browse the repository at this point in the history
  • Loading branch information
divyam234 committed Nov 7, 2023
1 parent d3f42e5 commit d70acb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/tgc/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ func (w *BotWorkers) Set(bots []string) {
func (w *BotWorkers) Next() string {
w.Lock()
defer w.Unlock()
item := w.bots[w.index]
w.index = (w.index + 1) % len(w.bots)
item := w.bots[w.index]
return item
}

Expand Down

0 comments on commit d70acb2

Please sign in to comment.