From 039dff9f503d857504ba38ee779d03dacdf3c06d Mon Sep 17 00:00:00 2001 From: Artem Navoiev Date: Wed, 21 Jun 2023 15:54:25 +0200 Subject: [PATCH] fix linter for logs benchmark Signed-off-by: Artem Navoiev --- deployment/logs-benchmark/generator/main.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/deployment/logs-benchmark/generator/main.go b/deployment/logs-benchmark/generator/main.go index 44401c74b..25f778d14 100644 --- a/deployment/logs-benchmark/generator/main.go +++ b/deployment/logs-benchmark/generator/main.go @@ -49,11 +49,9 @@ func main() { limitter := make(chan struct{}, limitItems) go func() { for { - select { - case <-limitTicker.C: - for i := 0; i < limitItems; i++ { - limitter <- struct{}{} - } + <-limitTicker.C + for i := 0; i < limitItems; i++ { + limitter <- struct{}{} } } }()