Skip to content

Commit ba6994e

Browse files
authored
Merge pull request #29 from grunch/change-global-option-param-name
Change loopd global option parameter to rpcserver
2 parents 769c69e + c9e482e commit ba6994e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/loop/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func main() {
5656
app.Usage = "control plane for your loopd"
5757
app.Flags = []cli.Flag{
5858
cli.StringFlag{
59-
Name: "loopd",
59+
Name: "rpcserver",
6060
Value: "localhost:11010",
6161
Usage: "loopd daemon address host:port",
6262
},
@@ -72,8 +72,8 @@ func main() {
7272
}
7373

7474
func getClient(ctx *cli.Context) (looprpc.SwapClientClient, func(), error) {
75-
loopdAddress := ctx.GlobalString("loopd")
76-
conn, err := getClientConn(loopdAddress)
75+
rpcServer := ctx.GlobalString("rpcserver")
76+
conn, err := getClientConn(rpcServer)
7777
if err != nil {
7878
return nil, nil, err
7979
}

0 commit comments

Comments
 (0)