Refactor the interface rate limiter implementation (#1072)

* Refactor the interface rate limiter implementation

* Update deps
This commit is contained in:
Wu Clan
2026-02-11 17:27:46 +08:00
committed by GitHub
parent 3f06baffed
commit 966779bcd7
10 changed files with 472 additions and 406 deletions
+1
View File
@@ -29,6 +29,7 @@ def get_request_ip(request: Request) -> str:
# 忽略 pytest
if request.client.host == 'testclient':
return '127.0.0.1'
return request.client.host