From fb730b7901919e8b414dc939bc7237e5526e5ef3 Mon Sep 17 00:00:00 2001 From: acer-king Date: Wed, 2 Oct 2024 07:14:19 -0700 Subject: [PATCH] limit max_capacity to 50 for validator's performance issue --- validators/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validators/utils.py b/validators/utils.py index 60c7d2cd..94501282 100644 --- a/validators/utils.py +++ b/validators/utils.py @@ -173,7 +173,7 @@ def setup_max_capacity(item): if isinstance(value, dict): # If the value is another dictionary, recurse setup_max_capacity(value) elif isinstance(value, (int, float)): # If the value is a number, increment by 5 - item[key] = min(value, 100) + item[key] = min(value, 50) def get_bandwidth(data, uid, provider, model):