Skip to content

Commit 7ba29c6

Browse files
authored
Merge pull request #283 from orsinium-forks/type-error-subscribe-bind
require deliver_subject in JS subscribe_bind
2 parents aab5c91 + 5b563a3 commit 7ba29c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nats/js/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ async def subscribe_bind(
303303
if cb and not manual_ack:
304304
cb = self._auto_ack_callback(cb)
305305
if config.deliver_subject is None:
306-
config.deliver_subject = self._nc.new_inbox()
306+
raise TypeError("config.deliver_subject is required")
307307
sub = await self._nc.subscribe(
308308
subject=config.deliver_subject,
309309
queue=config.deliver_group or "",

0 commit comments

Comments
 (0)