Skip to content

Commit

Permalink
Fixed receiver's run_startup parameter typo. (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rius authored Apr 19, 2024
1 parent 7f75e7a commit 2f75d91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion taskiq/api/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def on_exit(_: Receiver) -> None:
receiver = receiver_cls(
broker=broker,
executor=executor,
run_starup=run_startup,
run_startup=run_startup,
validate_params=validate_params,
max_async_tasks=max_async_tasks,
max_prefetch=max_prefetch,
Expand Down
4 changes: 2 additions & 2 deletions taskiq/receiver/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ def __init__(
max_async_tasks: "Optional[int]" = None,
max_prefetch: int = 0,
propagate_exceptions: bool = True,
run_starup: bool = True,
run_startup: bool = True,
ack_type: Optional[AcknowledgeType] = None,
on_exit: Optional[Callable[["Receiver"], None]] = None,
max_tasks_to_execute: Optional[int] = None,
wait_tasks_timeout: Optional[float] = None,
) -> None:
self.broker = broker
self.executor = executor
self.run_startup = run_starup
self.run_startup = run_startup
self.validate_params = validate_params
self.task_signatures: Dict[str, inspect.Signature] = {}
self.task_hints: Dict[str, Dict[str, Any]] = {}
Expand Down

0 comments on commit 2f75d91

Please sign in to comment.