lnd: fix bug causing help (./lnd -h) to be printed twice

This commit is contained in:
Olaoluwa Osuntokun 2016-06-20 21:43:51 -07:00
parent cad0d54e43
commit 32b8c5b848
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

2
lnd.go
View File

@ -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