Browse Source
Fix TTL parsing and DiskStatus field names to match Go exactly
Fix TTL parsing and DiskStatus field names to match Go exactly
TTL::read: Go's ReadTTL preserves the original unit (7d stays 7d, not 1w) and errors on count > 255. The previous normalization change was incorrect — Go only normalizes internally via fitTtlCount, not during string parsing. DiskStatus: Go uses encoding/json on protobuf structs, which reads the json struct tags (snake_case: percent_free, percent_used, disk_type), not the protobuf JSON names (camelCase). Revert to snake_case to match Go's actual output.rust-volume-server
2 changed files with 29 additions and 46 deletions
Write
Preview
Loading…
Cancel
Save
Reference in new issue