2
0
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:
Olaoluwa Osuntokun 2019-03-22 16:00:53 -07:00 committed by GitHub
commit ba6994e3d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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