houstonClient도 버전 관리
This commit is contained in:
@ -6,7 +6,6 @@ import (
|
||||
"net"
|
||||
"os"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"repositories.action2quare.com/ayo/gocommon/logger"
|
||||
"repositories.action2quare.com/ayo/houston/client"
|
||||
@ -180,13 +179,12 @@ func (hs *houstonServer) Start() error {
|
||||
closeCount := int32(0)
|
||||
var hc client.HoustonClient
|
||||
if loadServerConfig().RunAsClient {
|
||||
hc, err = client.NewClient()
|
||||
hc, err = client.NewClient(false)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
go func() {
|
||||
time.Sleep(time.Second)
|
||||
hc.Start()
|
||||
logger.Println("houstonClient is finished")
|
||||
if atomic.AddInt32(&closeCount, 1) == 1 {
|
||||
|
||||
Reference in New Issue
Block a user