Skip to content

Commit 6c3458c

Browse files
docs: fix MetadataResponse docstring — node metadata, not statement
The docstring incorrectly said "Statement metadata response" but MetadataResponse carries failure_domain and weight, which are node-level cluster topology properties returned by DescribeRequest. Closes #168. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9282c8d commit 6c3458c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/dqlitewire/messages/responses.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,10 @@ def decode_body(cls, data: bytes, schema: int = 0) -> "ServersResponse":
547547

548548
@dataclass
549549
class MetadataResponse(Message):
550-
"""Statement metadata response.
550+
"""Node metadata response (failure domain and weight).
551+
552+
Returned in response to a DescribeRequest. Contains the node's
553+
failure domain and weight, used for cluster topology decisions.
551554
552555
Body: uint64 failure_domain, uint64 weight
553556
"""

0 commit comments

Comments
 (0)