From 1cadf523cdfc53f9161cf862129fdb3dd5d5ba4b Mon Sep 17 00:00:00 2001 From: Demosfenys Date: Wed, 15 Feb 2023 18:56:29 +0300 Subject: [PATCH] test_1 --- internal/router/update.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/router/update.go b/internal/router/update.go index 2d473dfa9..c15dcb286 100644 --- a/internal/router/update.go +++ b/internal/router/update.go @@ -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)