houstonClient도 버전 관리

This commit is contained in:
2023-06-29 11:00:26 +09:00
parent cf46888b6a
commit 5429d3d90f
4 changed files with 40 additions and 8 deletions

View File

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