Skip to content

Commit 4979f1c

Browse files
committed
chore: increase default rate-limit-fast
1 parent 4e989aa commit 4979f1c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ options:
177177
--rate-limits-default RATE_LIMITS_DEFAULT [RATE_LIMITS_DEFAULT ...]
178178
Rate limits for all API requests except /status and /stop (Default: --rate-limits-default "10/minute", "1/second")
179179
--rate-limit-fast RATE_LIMIT_FAST
180-
Rate limit /status and /stop API requests (Default: "1/second")
180+
Rate limit /status and /stop API requests (Default: "2/second")
181181
--no-logging-init specify to bypass logging initialization (will be set automatically when using --test)
182182
183183
examples:

src/lmao/external_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self,
9191
config: Dict,
9292
rate_limits_default: List[str] or None = None,
93-
rate_limit_fast: str = "1/second",
93+
rate_limit_fast: str = "2/second",
9494
tokens_use: List or None = None,
9595
tokens_manage: List or None = None,
9696
):

src/lmao/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def parse_args() -> argparse.Namespace:
8686
--rate-limits-default RATE_LIMITS_DEFAULT [RATE_LIMITS_DEFAULT ...]
8787
Rate limits for all API requests except /status and /stop (Default: --rate-limits-default "10/minute", "1/second")
8888
--rate-limit-fast RATE_LIMIT_FAST
89-
Rate limit /status and /stop API requests (Default: "1/second")
89+
Rate limit /status and /stop API requests (Default: "2/second")
9090
--no-logging-init specify to bypass logging initialization (will be set automatically when using --test)
9191
9292
Returns:
@@ -171,9 +171,9 @@ def parse_args() -> argparse.Namespace:
171171
parser.add_argument(
172172
"--rate-limit-fast",
173173
type=str,
174-
default="1/second",
174+
default="2/second",
175175
required=False,
176-
help='Rate limit /status and /stop API requests (Default: "1/second")',
176+
help='Rate limit /status and /stop API requests (Default: "2/second")',
177177
)
178178
parser.add_argument(
179179
"--no-logging-init",

0 commit comments

Comments
 (0)