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:
parent
8247d62ab3
commit
e08d475c13
1 changed files with 1 additions and 1 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue