Skip to content

Commit

Permalink
Thread changes
Browse files Browse the repository at this point in the history
Signed-off-by: chandr-andr (Kiselev Aleksandr) <[email protected]>
  • Loading branch information
chandr-andr committed Oct 18, 2023
1 parent 3b9dc64 commit a45d8e3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions taskiq_nats/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,13 @@ def __init__( # noqa: WPS211 (too many args)
stream_name: str = "taskiq_jetstream",
queue: typing.Optional[str] = None,
durable: str = "taskiq_durable",
result_backend: typing.Optional[AsyncResultBackend[_T]] = None,
task_id_generator: typing.Optional[typing.Callable[[], str]] = None,
stream_config: typing.Optional[StreamConfig] = None,
consumer_config: typing.Optional[ConsumerConfig] = None,
pull_consume_batch: int = 1,
pull_consume_timeout: typing.Optional[float] = None,
**connection_kwargs: typing.Any,
) -> None:
super().__init__(result_backend, task_id_generator)
super().__init__()
self.servers: typing.Final = servers
self.client: typing.Final = Client()
self.connection_kwargs: typing.Final = connection_kwargs
Expand Down

0 comments on commit a45d8e3

Please sign in to comment.