From ebee7e2d274809bd5235856f4ff2bb556f03f03a Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 3 May 2018 17:15:21 +0900 Subject: [PATCH] ing --- main.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 494f30e..75a4fe7 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,7 @@ var ( ) func init() { - portNumber = flag.Int(occp.FlagProbePortName, 0, "Port number of Probe") + portNumber = flag.Int(occp.FlagProbePortName, 60000, "Port number of Probe") loggingConfigFilePath := flag.String(occp.FlagLoggingConfigFilePathName, "", "logging config path") flag.Parse() @@ -31,13 +31,11 @@ func main() { c := client.New(*portNumber) - go func() { - err := c.Start() - if nil != err { - log.Printf("err: %v", err) - } + err := c.Start() + if nil != err { + log.Printf("err: %v", err) os.Exit(1) - }() + } interrupt := make(chan os.Signal, 1) signal.Notify(interrupt,