Skip to content

Commit 9be7f8e

Browse files
committed
fix: fix lb strategy bug
1 parent 9b578dc commit 9be7f8e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

nya/core/control.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,6 @@ def release_key(self, api_name: str, key: str) -> None:
242242
key_limiter.release()
243243
key_limiter.unlock()
244244

245-
# additional metrics update to support the key selection (least_requests)
246-
key_lb = self.get_load_balancer(api_name)
247-
key_lb.update_request_count(key, -1)
248-
249245
def release_ip(self, api_name: str, ip: str) -> None:
250246
"""
251247
Release the most recent request for a specific IP address.

0 commit comments

Comments
 (0)