Skip to content

Commit

Permalink
fix list of approvers
Browse files Browse the repository at this point in the history
Signed-off-by: Ismael Ibuan <[email protected]>
  • Loading branch information
iibuan committed Sep 27, 2024
1 parent a434426 commit 4836e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/goapp/service/item/item-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (s *itemService) GetAll(itemOptions model.ItemOptions) (model.Response, err
maxGoroutines := 10
guard := make(chan struct{}, maxGoroutines)

for _, item := range data {
for i := range data {
guard <- struct{}{}
wg.Add(1)
go func(r *model.Item) {
Expand All @@ -54,7 +54,7 @@ func (s *itemService) GetAll(itemOptions model.ItemOptions) (model.Response, err

<-guard
wg.Done()
}(&item)
}(&data[i])
}
wg.Wait()

Expand Down

0 comments on commit 4836e6b

Please sign in to comment.