cmd/loopd: rename MacaroonPath to MacaroonDir

This commit is contained in:
Olaoluwa Osuntokun 2019-04-17 15:49:23 -07:00
parent 74d381fa63
commit 6037d0105f
No known key found for this signature in database
GPG key ID: CE58F7F8E20FD9A2
2 changed files with 4 additions and 4 deletions

View file

@ -1,9 +1,9 @@
package main
type lndConfig struct {
Host string `long:"host" description:"lnd instance rpc address"`
MacaroonPath string `long:"macaroonpath" description:"Path to lnd macaroon"`
TLSPath string `long:"tlspath" description:"Path to lnd tls certificate"`
Host string `long:"host" description:"lnd instance rpc address"`
MacaroonDir string `long:"macaroondir" description:"Path to the directory containing all the required lnd macaroons"`
TLSPath string `long:"tlspath" description:"Path to lnd tls certificate"`
}
type viewParameters struct{}

View file

@ -11,7 +11,7 @@ import (
// getLnd returns an instance of the lnd services proxy.
func getLnd(network string, cfg *lndConfig) (*lndclient.GrpcLndServices, error) {
return lndclient.NewLndServices(
cfg.Host, "client", network, cfg.MacaroonPath, cfg.TLSPath,
cfg.Host, "client", network, cfg.MacaroonDir, cfg.TLSPath,
)
}