mirror of
https://github.com/luxfi/sdk.git
synced 2026-10-30 15:19:23 +00:00
Two replies changed shape in luxfi/api v1.1.14 so they could cross a wire whose fields are offsets. An address is the text it has always been on the JSON wire, because netip.AddrPort keeps every one of its fields unexported and so derived an empty layout — it crossed and arrived blank. The VMs are a list ordered by id, because a map has no layout and no order for two reads to agree on. GetNodeIP still hands back a netip.AddrPort, parsed from that text. GetVMs hands back the list, because rebuilding a map here would put back the one thing the shape was changed to remove.