Skip to content

Commit

Permalink
Fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Dumchenko committed Dec 10, 2024
1 parent 4ba1910 commit 6c67fd0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion faststream/_internal/broker/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(
decoder=decoder,
include_in_schema=include_in_schema,
state=EmptyBrokerState("You should include router to any broker."),
routers=routers
routers=routers,
)

for h in handlers:
Expand Down
2 changes: 1 addition & 1 deletion faststream/confluent/broker/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ async def _connect( # type: ignore[override]
**kwargs,
client_id=client_id,
config=self.config,
logger=self._state.get().logger_state
logger=self._state.get().logger_state,
)

self._producer.connect(native_producer)
Expand Down
8 changes: 6 additions & 2 deletions tests/brokers/kafka/test_consume.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,9 @@ async def handler(msg):

await asyncio.wait(
(
asyncio.create_task(br._producer._producer.producer.send(queue, key=b"")),
asyncio.create_task(
br._producer._producer.producer.send(queue, key=b"")
),
asyncio.create_task(event.wait()),
),
timeout=3,
Expand All @@ -426,7 +428,9 @@ async def handler(msg):

await asyncio.wait(
(
asyncio.create_task(br._producer._producer.producer.send(queue, key=b"")),
asyncio.create_task(
br._producer._producer.producer.send(queue, key=b"")
),
asyncio.create_task(event.wait()),
),
timeout=3,
Expand Down

0 comments on commit 6c67fd0

Please sign in to comment.