From e08d475c13823731e3dbc431eac2ebd0f0cc8014 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 13:07:40 +0100 Subject: [PATCH] ax(node): expand abbreviated loop variable in DiscoverGateways usage example Comment used `gw` (AX-1: predictable names over short names). Expanded to `gateway` so the usage example matches what code should look like. Co-Authored-By: Charon --- pkg/node/lethean.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/node/lethean.go b/pkg/node/lethean.go index 32cb275..f4f26d2 100644 --- a/pkg/node/lethean.go +++ b/pkg/node/lethean.go @@ -98,7 +98,7 @@ func DiscoverPools(daemonURL string) []PoolGateway { } // gateways := node.DiscoverGateways("http://127.0.0.1:46941") -// for _, gw := range gateways { log(gw.Name, gw.Endpoint) } +// for _, gateway := range gateways { log(gateway.Name, gateway.Endpoint) } func DiscoverGateways(daemonURL string) []PoolGateway { body := `{"jsonrpc":"2.0","id":"0","method":"get_all_alias_details","params":{}}` response, err := http.Post(daemonURL+"/json_rpc", "application/json", bytes.NewReader([]byte(body)))