mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-02-03 01:23:40 -05:00
Change limiter strategy to fixed window
This commit is contained in:
parent
5fa08ac467
commit
97e29cc7d5
@ -277,7 +277,7 @@ def create_app(args):
|
||||
storage_uri=args.req_limit_storage,
|
||||
default_limits_deduct_when=lambda req: True, # Force cost to be called after the request
|
||||
default_limits_cost=limits_cost,
|
||||
strategy="moving-window",
|
||||
strategy="fixed-window",
|
||||
)
|
||||
else:
|
||||
from .no_limiter import Limiter
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user