ing
This commit is contained in:
parent
8a007e8eaa
commit
9f7e224026
|
@ -4,6 +4,7 @@ import (
|
||||||
cdr "git.loafle.net/commons/di-go/registry"
|
cdr "git.loafle.net/commons/di-go/registry"
|
||||||
"git.loafle.net/commons/logging-go"
|
"git.loafle.net/commons/logging-go"
|
||||||
crc "git.loafle.net/commons/rpc-go/client"
|
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"
|
crpj "git.loafle.net/commons/rpc-go/protocol/json"
|
||||||
crr "git.loafle.net/commons/rpc-go/registry"
|
crr "git.loafle.net/commons/rpc-go/registry"
|
||||||
occp "git.loafle.net/overflow/commons-go/config/probe"
|
occp "git.loafle.net/overflow/commons-go/config/probe"
|
||||||
|
@ -15,7 +16,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func New(portNumber int) *crc.Client {
|
func New(portNumber int) *crc.Client {
|
||||||
rpcClientCodec := crpj.NewClientCodec()
|
rpcClientCodec := crpj.NewCustomClientCodec(crcodec.NewCompressionCodecSelector(connector.GetCompressionThreshold()))
|
||||||
|
|
||||||
connector, err := occ.NewConnector(occp.ContainerNetwork, portNumber)
|
connector, err := occ.NewConnector(occp.ContainerNetwork, portNumber)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user