houston 버전 관리
This commit is contained in:
@ -165,8 +165,6 @@ func marshal(argval reflect.Value, output map[string]string) map[string]string {
|
||||
}
|
||||
|
||||
func (os *operationServer) Query(svr protos.Operation_QueryServer) error {
|
||||
// 서버는 업데이트가 있는지 확인하고 있으면 stream에 응답을 보낸다.
|
||||
// 업데이트가 없으면 대기
|
||||
desc, err := svr.Recv()
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@ -186,9 +186,7 @@ func (hs *houstonServer) Start() error {
|
||||
|
||||
go func() {
|
||||
hc.Start()
|
||||
logger.Println("houstonClient is finished")
|
||||
if atomic.AddInt32(&closeCount, 1) == 1 {
|
||||
logger.Println("try stop houstonServer")
|
||||
hs.Stop()
|
||||
}
|
||||
}()
|
||||
@ -197,11 +195,9 @@ func (hs *houstonServer) Start() error {
|
||||
err = hs.rpcServer.Serve(lis)
|
||||
if atomic.AddInt32(&closeCount, 1) == 1 {
|
||||
if hc != nil {
|
||||
logger.Println("try stop houstonClient")
|
||||
hc.Shutdown()
|
||||
}
|
||||
}
|
||||
logger.Println("houstonServer is finished")
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user