mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
fix linter for logs benchmark
Signed-off-by: Artem Navoiev <tenmozes@gmail.com>
This commit is contained in:
parent
bf081d157e
commit
039dff9f50
1 changed files with 3 additions and 5 deletions
|
@ -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{}{}
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in a new issue