ing
This commit is contained in:
parent
9f7e224026
commit
1236a2644c
|
@ -16,13 +16,13 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func New(portNumber int) *crc.Client {
|
func New(portNumber int) *crc.Client {
|
||||||
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 {
|
||||||
logging.Logger().Panic(err)
|
logging.Logger().Panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rpcClientCodec := crpj.NewCustomClientCodec(crcodec.NewCompressionCodecSelector(connector.GetCompressionThreshold()))
|
||||||
|
|
||||||
ch := &ClientHandlers{}
|
ch := &ClientHandlers{}
|
||||||
ch.Name = occp.ContainerNetwork.String()
|
ch.Name = occp.ContainerNetwork.String()
|
||||||
ch.Connector = connector
|
ch.Connector = connector
|
||||||
|
|
Loading…
Reference in New Issue
Block a user