From 438b2e11bd265df30cf36683a55a42d8a51a6f23 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 11 Feb 2023 20:51:39 -0800 Subject: [PATCH] app/vmauth: allow specifying `max_concurrent_requests` value on a per-user basis bigger than the `-maxConcurrentPerUserRequests` value --- app/vmauth/auth_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmauth/auth_config.go b/app/vmauth/auth_config.go index a316f2a52..5031c67a0 100644 --- a/app/vmauth/auth_config.go +++ b/app/vmauth/auth_config.go @@ -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