Skip to content

Commit

Permalink
Merged in from Main
Browse files Browse the repository at this point in the history
  • Loading branch information
sifex committed May 18, 2024
1 parent b6d7068 commit e77be6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions faststream/confluent/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,16 @@ async def publish( # type: ignore[override]
return_value = None

for handler in self.broker._subscribers.values(): # pragma: no branch
call = False

# for p in handler.partitions:
# if p.topic == topic and (partition is None or p.partition == partition):
# call = True

if topic in handler.topics:
call = True

if call:
handle_value = await call_handler(
handler=handler,
message=[incoming]
Expand Down

0 comments on commit e77be6c

Please sign in to comment.