Skip to content

Commit 4bf231c

Browse files
committed
🚧 bug(wip): nats is weird
1 parent 1d51d86 commit 4bf231c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

magnet/ic/field.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ async def on(self, category: str = 'no_category', stream: str = 'documents', ses
196196
self.stream = stream
197197
self.session = session
198198
self.config = ConsumerConfig(
199-
name=self.session
199+
name=f'{self.session}_1'
200200
, deliver_group=self.session
201-
, durable_name=self.session
202-
, ack_wait=20
201+
, durable_name=f'{self.session}_1'
202+
, max_ack_pending=group_size
203203
)
204204
_f('wait',f'connecting to {self.server}')
205205
try:
@@ -209,8 +209,6 @@ async def on(self, category: str = 'no_category', stream: str = 'documents', ses
209209
await self.js.add_consumer(
210210
stream=self.stream
211211
, config=self.config
212-
, deliver_subject=self.session
213-
, max_ack_pending=group_size
214212
)
215213
except:
216214
_f('warn', f'consumer {self.session} exists, skipping create')

0 commit comments

Comments
 (0)