mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 06:35:07 +01:00
lnd: fix bug causing help (./lnd -h) to be printed twice
This commit is contained in:
parent
cad0d54e43
commit
32b8c5b848
1 changed files with 1 additions and 1 deletions
2
lnd.go
2
lnd.go
|
@ -26,13 +26,13 @@ var (
|
|||
|
||||
func main() {
|
||||
// Use all processor cores.
|
||||
// TODO(roasbeef): remove this if required version # is > 1.6?
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
|
||||
// Load the configuration, and parse any command line options. This
|
||||
// function will also set up logging properly.
|
||||
loadedConfig, err := loadConfig()
|
||||
if err != nil {
|
||||
fmt.Printf("unable to load config: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
cfg = loadedConfig
|
||||
|
|
Loading…
Add table
Reference in a new issue