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 <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 13:07:40 +01:00
parent 8247d62ab3
commit e08d475c13
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -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)))