Skip to content

Commit

Permalink
limit max_capacity to 50 for validator's performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
acer-king committed Oct 2, 2024
1 parent 8f6d34f commit fb730b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validators/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit fb730b7

Please sign in to comment.