Skip to content

Commit

Permalink
confluent: check producer before setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Sep 20, 2024
1 parent bfca156 commit 71a1634
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion faststream/confluent/broker/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,8 @@ async def start(self) -> None:

def _setup(self, state: Optional["BaseState"] = None) -> None:
super()._setup(state)
self._producer._setup(self._state.logger_state)
if self._producer:
self._producer._setup(self._state.logger_state)

@property
def _subscriber_setup_extra(self) -> "AnyDict":
Expand Down

0 comments on commit 71a1634

Please sign in to comment.