Skip to content

Commit

Permalink
Merge pull request #283 from orsinium-forks/type-error-subscribe-bind
Browse files Browse the repository at this point in the history
require deliver_subject in JS subscribe_bind
  • Loading branch information
wallyqs authored Mar 21, 2022
2 parents aab5c91 + 5b563a3 commit 7ba29c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nats/js/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ async def subscribe_bind(
if cb and not manual_ack:
cb = self._auto_ack_callback(cb)
if config.deliver_subject is None:
config.deliver_subject = self._nc.new_inbox()
raise TypeError("config.deliver_subject is required")
sub = await self._nc.subscribe(
subject=config.deliver_subject,
queue=config.deliver_group or "",
Expand Down

0 comments on commit 7ba29c6

Please sign in to comment.