lnd: fix bug causing help (./lnd -h) to be printed twice
This commit is contained in:
parent
cad0d54e43
commit
32b8c5b848
2
lnd.go
2
lnd.go
@ -26,13 +26,13 @@ var (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Use all processor cores.
|
// Use all processor cores.
|
||||||
|
// TODO(roasbeef): remove this if required version # is > 1.6?
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
|
|
||||||
// Load the configuration, and parse any command line options. This
|
// Load the configuration, and parse any command line options. This
|
||||||
// function will also set up logging properly.
|
// function will also set up logging properly.
|
||||||
loadedConfig, err := loadConfig()
|
loadedConfig, err := loadConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("unable to load config: %v\n", err)
|
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
cfg = loadedConfig
|
cfg = loadedConfig
|
||||||
|
Loading…
Reference in New Issue
Block a user