File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ type lndConfig struct {
2828
2929type viewParameters struct {}
3030
31- type config struct {
31+ type Config struct {
3232 ShowVersion bool `short:"V" long:"version" description:"Display version information and exit"`
3333 Insecure bool `long:"insecure" description:"disable tls"`
3434 Network string `long:"network" description:"network to run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet"`
@@ -60,8 +60,8 @@ const (
6060)
6161
6262// DefaultConfig returns all default values for the Config struct.
63- func DefaultConfig () config {
64- return config {
63+ func DefaultConfig () Config {
64+ return Config {
6565 Network : "mainnet" ,
6666 RPCListen : "localhost:11010" ,
6767 RESTListen : "localhost:8081" ,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ type listenerCfg struct {
4040
4141// daemon runs loopd in daemon mode. It will listen for grpc connections,
4242// execute commands and pass back swap status information.
43- func daemon (config * config , lisCfg * listenerCfg ) error {
43+ func daemon (config * Config , lisCfg * listenerCfg ) error {
4444 lnd , err := lisCfg .getLnd (config .Network , config .Lnd )
4545 if err != nil {
4646 return err
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ type RPCConfig struct {
4747
4848// newListenerCfg creates and returns a new listenerCfg from the passed config
4949// and RPCConfig.
50- func newListenerCfg (config * config , rpcCfg RPCConfig ) * listenerCfg {
50+ func newListenerCfg (config * Config , rpcCfg RPCConfig ) * listenerCfg {
5151 return & listenerCfg {
5252 grpcListener : func () (net.Listener , error ) {
5353 // If a custom RPC listener is set, we will listen on
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
1010)
1111
1212// getClient returns an instance of the swap client.
13- func getClient (config * config , lnd * lndclient.LndServices ) (* loop.Client ,
13+ func getClient (config * Config , lnd * lndclient.LndServices ) (* loop.Client ,
1414 func (), error ) {
1515
1616 storeDir , err := getStoreDir (config .Network )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
1010)
1111
1212// view prints all swaps currently in the database.
13- func view (config * config , lisCfg * listenerCfg ) error {
13+ func view (config * Config , lisCfg * listenerCfg ) error {
1414 chainParams , err := swap .ChainParamsFromNetwork (config .Network )
1515 if err != nil {
1616 return err
You can’t perform that action at this time.
0 commit comments