()
| 298 | } |
| 299 | |
| 300 | func (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 | |
| 310 | const killQueryTimeout = time.Second * 30 |
| 311 |