diff --git a/client/client.go b/client/client.go index 2fe3e24..310bfcb 100644 --- a/client/client.go +++ b/client/client.go @@ -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