Skip to content

Commit

Permalink
🚧 fix(wip): ack_sync timeout testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mxchinegod committed Jan 23, 2024
1 parent 36e3cac commit ab6caaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magnet/ize/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ async def index(self, payload, msg, verbose=False, field=None, charge=False, ins
if field:
_f('info', f'sending payload\n{payload}') if verbose else None
await self.field.pulse(payload)
await msg.ack_sync()
await msg.ack_sync(timeout=15)
else:
_f('warn', f'embedding exists already\n{payload.text}') if verbose else None
await msg.ack_sync()
await msg.ack_sync(timeout=15)
except Exception as e:
await msg.term()
_f('fatal', e)
Expand Down

0 comments on commit ab6caaf

Please sign in to comment.