Skip to content

Commit

Permalink
fix: add pattern checking
Browse files Browse the repository at this point in the history
  • Loading branch information
spataphore1337 committed Jul 11, 2024
1 parent 6534e00 commit f8d3089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faststream/kafka/subscriber/usecase.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async def start(self) -> None:
**self.__connection_args,
)

if self.topics:
if self.topics or self.__pattern:
consumer.subscribe(
topics=self.topics,
pattern=self.__pattern,
Expand Down

0 comments on commit f8d3089

Please sign in to comment.