Skip to content

Commit

Permalink
style: use go 1.22 style for
Browse files Browse the repository at this point in the history
  • Loading branch information
rsharifnasab committed Nov 19, 2024
1 parent db3e732 commit 2b12857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (w *Worker) acceptClientWork(work any) any {
}

func (w *Worker) AddAcceptClientWork(server *Server, count int) {
for i := 0; i < count; i++ {
for range count {
_, err := w.Pond.AddWork(AcceptClient, server)
if err != nil {
w.Logger.Error("failed to add accept client work", zap.Error(err))
Expand Down

0 comments on commit 2b12857

Please sign in to comment.