mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-08-26 17:31:34 +00:00
fix(drain): msg.metadata is a property, not a method
nats-py's Msg.metadata is a property returning a Metadata object directly — not an async callable. Removes the erroneous () call. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2f677e85a1
commit
af4d2a3697
1 changed files with 1 additions and 1 deletions
|
|
@ -687,7 +687,7 @@ class CentralConsumer:
|
|||
# while we still hold the message (prevents interleaving).
|
||||
if self._draining:
|
||||
try:
|
||||
meta = await msg.metadata()
|
||||
meta = msg.metadata
|
||||
if meta is not None and getattr(meta, "num_pending", None) == 0:
|
||||
self._drain_complete()
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue