From 75992472f3c5918e08e10d16a47fa141a208218c Mon Sep 17 00:00:00 2001 From: mountain Date: Fri, 1 Dec 2023 10:38:02 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/operation.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/operation.go b/server/operation.go index 77c1944..0ba2541 100644 --- a/server/operation.go +++ b/server/operation.go @@ -8,6 +8,7 @@ import ( "sync" "time" + "repositories.action2quare.com/ayo/gocommon/logger" "repositories.action2quare.com/ayo/houston/shared" "repositories.action2quare.com/ayo/houston/shared/protos" ) @@ -191,8 +192,14 @@ func (os *operationServer) Query(svr protos.Operation_QueryServer) error { return err } + hostname := desc.Hostname key, opChan := os.hp.regist(desc) - defer os.hp.unregist(key) + defer func() { + logger.Println("operationServer.Query : houston client unregistered ", hostname) + os.hp.unregist(key) + }() + + logger.Println("operationServer.Query : houston client registered ", hostname) Outer: for {