app/vmauth: allow specifying max_concurrent_requests value on a per-user basis bigger than the -maxConcurrentPerUserRequests value

This commit is contained in:
Aliaksandr Valialkin 2023-02-11 20:51:39 -08:00
parent e5070c0bcd
commit 438b2e11bd
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -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