lib/vmselectapi: typo fix after 20e9598254

This commit is contained in:
Aliaksandr Valialkin 2023-01-06 22:13:32 -08:00
parent b275983403
commit 2ca48444e2
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -512,7 +512,7 @@ func (s *Server) processRPCWithConcurrencyLimit(ctx *vmselectRequestCtx, rpcName
t := timerpool.Get(d)
s.concurrencyLimitReached.Inc()
select {
case <-s.concurrencyLimitCh:
case s.concurrencyLimitCh <- struct{}{}:
timerpool.Put(t)
ctx.qt.Printf("wait in queue because -%s=%d concurrent requests are executed", s.limits.MaxConcurrentRequestsFlagName, s.limits.MaxConcurrentRequests)
case <-t.C: