mirror of
https://github.com/lightninglabs/loop
synced 2024-11-04 06:00:21 +00:00
Merge pull request #29 from grunch/change-global-option-param-name
Change loopd global option parameter to rpcserver
This commit is contained in:
commit
ba6994e3d3
@ -56,7 +56,7 @@ func main() {
|
||||
app.Usage = "control plane for your loopd"
|
||||
app.Flags = []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "loopd",
|
||||
Name: "rpcserver",
|
||||
Value: "localhost:11010",
|
||||
Usage: "loopd daemon address host:port",
|
||||
},
|
||||
@ -72,8 +72,8 @@ func main() {
|
||||
}
|
||||
|
||||
func getClient(ctx *cli.Context) (looprpc.SwapClientClient, func(), error) {
|
||||
loopdAddress := ctx.GlobalString("loopd")
|
||||
conn, err := getClientConn(loopdAddress)
|
||||
rpcServer := ctx.GlobalString("rpcserver")
|
||||
conn, err := getClientConn(rpcServer)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user