mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmauth: allow specifying max_concurrent_requests
value on a per-user basis bigger than the -maxConcurrentPerUserRequests
value
This commit is contained in:
parent
e5070c0bcd
commit
438b2e11bd
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ func (ui *UserInfo) endConcurrencyLimit() {
|
|||
|
||||
func (ui *UserInfo) getMaxConcurrentRequests() int {
|
||||
mcr := ui.MaxConcurrentRequests
|
||||
if mcr <= 0 || mcr > *maxConcurrentPerUserRequests {
|
||||
if mcr <= 0 {
|
||||
mcr = *maxConcurrentPerUserRequests
|
||||
}
|
||||
return mcr
|
||||
|
|
Loading…
Reference in a new issue