Skip to content

Commit

Permalink
🚧 bug(wip): nats is weird
Browse files Browse the repository at this point in the history
  • Loading branch information
mxchinegod committed Jan 28, 2024
1 parent 1d51d86 commit 4bf231c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions magnet/ic/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ async def on(self, category: str = 'no_category', stream: str = 'documents', ses
self.stream = stream
self.session = session
self.config = ConsumerConfig(
name=self.session
name=f'{self.session}_1'
, deliver_group=self.session
, durable_name=self.session
, ack_wait=20
, durable_name=f'{self.session}_1'
, max_ack_pending=group_size
)
_f('wait',f'connecting to {self.server}')
try:
Expand All @@ -209,8 +209,6 @@ async def on(self, category: str = 'no_category', stream: str = 'documents', ses
await self.js.add_consumer(
stream=self.stream
, config=self.config
, deliver_subject=self.session
, max_ack_pending=group_size
)
except:
_f('warn', f'consumer {self.session} exists, skipping create')
Expand Down

0 comments on commit 4bf231c

Please sign in to comment.