From 51bbdb44294441a192fbfbc325fd9b696cca3fbb Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 1 Dec 2017 16:53:22 +0900 Subject: [PATCH] ing --- client/client_handlers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/client_handlers.go b/client/client_handlers.go index 1974f5e..ca4470d 100644 --- a/client/client_handlers.go +++ b/client/client_handlers.go @@ -1,14 +1,14 @@ package client import ( - cr "git.loafle.net/commons_go/rpc" crc "git.loafle.net/commons_go/rpc/client" crpj "git.loafle.net/commons_go/rpc/protocol/json" + crr "git.loafle.net/commons_go/rpc/registry" ) -func NewClientHandler(registry cr.Registry) ClientHandler { +func NewClientHandler(rpcInvoker crr.RPCInvoker) ClientHandler { ch := &ClientHandlers{} - ch.RPCRegistry = registry + ch.RPCInvoker = rpcInvoker ch.Codec = crpj.NewClientCodec() return ch