This commit is contained in:
crusader 2018-07-02 23:54:32 +09:00
parent 8a007e8eaa
commit 9f7e224026

View File

@ -4,6 +4,7 @@ import (
cdr "git.loafle.net/commons/di-go/registry"
"git.loafle.net/commons/logging-go"
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"
occp "git.loafle.net/overflow/commons-go/config/probe"
@ -15,7 +16,7 @@ import (
)
func New(portNumber int) *crc.Client {
rpcClientCodec := crpj.NewClientCodec()
rpcClientCodec := crpj.NewCustomClientCodec(crcodec.NewCompressionCodecSelector(connector.GetCompressionThreshold()))
connector, err := occ.NewConnector(occp.ContainerNetwork, portNumber)
if nil != err {