From d47b7bfd7560d3f004aa7a0e0b91e7342bbed07a Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 11 May 2018 14:29:28 +0900 Subject: [PATCH] ing --- client/client-handler.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/client-handler.go b/client/client-handler.go index 3c035b4..a990919 100644 --- a/client/client-handler.go +++ b/client/client-handler.go @@ -7,6 +7,7 @@ import ( logging "git.loafle.net/commons/logging-go" crc "git.loafle.net/commons/rpc-go/client" + csc "git.loafle.net/commons/server-go/client" occi "git.loafle.net/overflow/commons-go/core/interfaces" ) @@ -23,7 +24,7 @@ type ClientHandlers struct { validated atomic.Value } -func (ch *ClientHandlers) Init(clientCtx crc.ClientCtx) error { +func (ch *ClientHandlers) Init(clientCtx csc.ClientCtx) error { if err := ch.ClientHandlers.Init(clientCtx); nil != err { return err } @@ -35,7 +36,7 @@ func (ch *ClientHandlers) Init(clientCtx crc.ClientCtx) error { return nil } -func (ch *ClientHandlers) OnStart(clientCtx crc.ClientCtx) error { +func (ch *ClientHandlers) OnStart(clientCtx csc.ClientCtx) error { if err := ch.ClientHandlers.OnStart(clientCtx); nil != err { return err } @@ -47,7 +48,7 @@ func (ch *ClientHandlers) OnStart(clientCtx crc.ClientCtx) error { return nil } -func (ch *ClientHandlers) OnStop(clientCtx crc.ClientCtx) { +func (ch *ClientHandlers) OnStop(clientCtx csc.ClientCtx) { if err := occi.ExecServices(ch.Services, occi.ServiceMethodStop, ch.OrderedServices, true); nil != err { logging.Logger().Errorf("Container[%s]: Service stop err %v", ch.Name, err) } @@ -55,7 +56,7 @@ func (ch *ClientHandlers) OnStop(clientCtx crc.ClientCtx) { ch.ClientHandlers.OnStop(clientCtx) } -func (ch *ClientHandlers) Destroy(clientCtx crc.ClientCtx) { +func (ch *ClientHandlers) Destroy(clientCtx csc.ClientCtx) { if err := occi.ExecServices(ch.Services, occi.ServiceMethodDestroy, ch.OrderedServices, true); nil != err { logging.Logger().Errorf("Container[%s]: Service destroy err %v", ch.Name, err) }