MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / dec

Method dec

scope.go:300–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298}
299
300func (s *scope) dec() {
301 // There is no need in ratelimiter.dec here, since the rate limiter
302 // is automatically zeroed every minute in rateLimiter.run.
303
304 s.user.queryCounter.dec()
305 s.clusterUser.queryCounter.dec()
306 s.host.DecrementConnections()
307 concurrentQueries.With(s.labels).Dec()
308}
309
310const killQueryTimeout = time.Second * 30
311

Callers 5

TestRunningQueriesFunction · 0.95
ServeHTTPMethod · 0.45
incMethod · 0.45
testConcurrentQueryFunction · 0.45

Calls 2

DecrementConnectionsMethod · 0.80
DecMethod · 0.80

Tested by 3

TestRunningQueriesFunction · 0.76
testConcurrentQueryFunction · 0.36