This commit is contained in:
crusader 2018-07-03 00:18:05 +09:00
parent 9f7e224026
commit 1236a2644c

View File

@ -16,13 +16,13 @@ import (
)
func New(portNumber int) *crc.Client {
rpcClientCodec := crpj.NewCustomClientCodec(crcodec.NewCompressionCodecSelector(connector.GetCompressionThreshold()))
connector, err := occ.NewConnector(occp.ContainerNetwork, portNumber)
if nil != err {
logging.Logger().Panic(err)
}
rpcClientCodec := crpj.NewCustomClientCodec(crcodec.NewCompressionCodecSelector(connector.GetCompressionThreshold()))
ch := &ClientHandlers{}
ch.Name = occp.ContainerNetwork.String()
ch.Connector = connector