From d5cb6e03c80e8a8872c8f4ab8fef37980b34f55e Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 2 Jul 2018 17:08:37 +0900 Subject: [PATCH] ing --- client/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index c6cb2c8..af6ea80 100644 --- a/client/client.go +++ b/client/client.go @@ -2,13 +2,14 @@ package client import ( crc "git.loafle.net/commons/rpc-go/client" + crcodec "git.loafle.net/commons/rpc-go/codec" crpj "git.loafle.net/commons/rpc-go/protocol/json" crr "git.loafle.net/commons/rpc-go/registry" cssc "git.loafle.net/commons/server-go/socket/client" ) func New(name string, connector cssc.Connector, services []interface{}) *crc.Client { - codec := crpj.NewCustomClientCodec(crc.NewCompressionCodecSelector(connector.GetCompressionThreshold())) + codec := crpj.NewCustomClientCodec(crcodec.NewCompressionCodecSelector(connector.GetCompressionThreshold())) var rpcRegistry crr.RPCRegistry if nil != services && 0 < len(services) {