Skip to content

Commit

Permalink
fix(cli): use constant for API timeout in CLI options
Browse files Browse the repository at this point in the history
  • Loading branch information
MountainGod2 committed Jan 5, 2025
1 parent b1d82d8 commit 642d03f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chaturbate_poller/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from chaturbate_poller import __version__
from chaturbate_poller.config_manager import ConfigManager
from chaturbate_poller.constants import API_TIMEOUT
from chaturbate_poller.main import main

console = Console()
Expand Down Expand Up @@ -36,7 +37,7 @@ def cli() -> None:
@click.option(
"--timeout",
"-t",
default=10,
default=API_TIMEOUT,
show_default=True,
help="Timeout for API requests, in seconds.",
)
Expand Down

0 comments on commit 642d03f

Please sign in to comment.