fix linter for logs benchmark

Signed-off-by: Artem Navoiev <tenmozes@gmail.com>
This commit is contained in:
Artem Navoiev 2023-06-21 15:54:25 +02:00 committed by Aliaksandr Valialkin
parent d9d759bc90
commit 97505895e3
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -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{}{}
}
}
}()