added unit to throttle

This commit is contained in:
euzu
2025-03-28 17:31:24 +01:00
parent 5f9576e2a0
commit 5842e00ed4
9 changed files with 73 additions and 21 deletions
-1
View File
@@ -201,7 +201,6 @@ impl ProxyUserCredentials {
pub async fn connection_permission(&self, app_state: &AppState) -> UserConnectionPermission {
if app_state.config.user_access_control {
// we allow requests with max connection reached, but we should block streaming after grace period
if let Some(&max_connections) = self.max_connections.as_ref() {
if max_connections > 0 {