Skip to content

Commit 6037d01

Browse files
committed
cmd/loopd: rename MacaroonPath to MacaroonDir
1 parent 74d381f commit 6037d01

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmd/loopd/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
type lndConfig struct {
4-
Host string `long:"host" description:"lnd instance rpc address"`
5-
MacaroonPath string `long:"macaroonpath" description:"Path to lnd macaroon"`
6-
TLSPath string `long:"tlspath" description:"Path to lnd tls certificate"`
4+
Host string `long:"host" description:"lnd instance rpc address"`
5+
MacaroonDir string `long:"macaroondir" description:"Path to the directory containing all the required lnd macaroons"`
6+
TLSPath string `long:"tlspath" description:"Path to lnd tls certificate"`
77
}
88

99
type viewParameters struct{}

cmd/loopd/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// getLnd returns an instance of the lnd services proxy.
1212
func getLnd(network string, cfg *lndConfig) (*lndclient.GrpcLndServices, error) {
1313
return lndclient.NewLndServices(
14-
cfg.Host, "client", network, cfg.MacaroonPath, cfg.TLSPath,
14+
cfg.Host, "client", network, cfg.MacaroonDir, cfg.TLSPath,
1515
)
1616
}
1717

0 commit comments

Comments
 (0)