lnd+config: export config struct and LoadConfig
As a preparation to be moved to the lncfg package, the main struct and functions related to configuration are exported.
This commit is contained in:
4 files changed
+10
-10
No files matched your search
@@ -52,7 +52,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
cfg *config
|
||||
cfg *Config
|
||||
registeredChains = newChainRegistry()
|
||||
|
||||
// networkDir is the path to the directory of the currently active
|
||||
@@ -156,7 +156,7 @@ func Main(lisCfg ListenerCfg) error {
|
||||
|
||||
// Load the configuration, and parse any command line options. This
|
||||
// function will also set up logging properly.
|
||||
loadedConfig, err := loadConfig()
|
||||
loadedConfig, err := LoadConfig()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user