Skip to content

Commit

Permalink
test_1
Browse files Browse the repository at this point in the history
  • Loading branch information
Demosfenys committed Feb 15, 2023
1 parent 53559dc commit d34d140
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/router/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ func (s serverMart) updateAccrual() {
time.Sleep(5 * time.Second)
continue
}

if len(orders) != 0 {
for _, order := range orders {
wg.Add(1)
go s.worker(order.Order, order.Login, &wg, &wgTimer)

}
} else {
time.Sleep(5 * time.Second)
Expand Down

0 comments on commit d34d140

Please sign in to comment.