remove Plus
This commit is contained in:
parent
386ced576a
commit
b3b4bc6059
@ -96,7 +96,7 @@ func (r *rpcClient) call(ctx context.Context, address string, req Request, resp
|
|||||||
context: ctx,
|
context: ctx,
|
||||||
request: req,
|
request: req,
|
||||||
closed: make(chan bool),
|
closed: make(chan bool),
|
||||||
codec: newRpcPlusCodec(msg, c, cf),
|
codec: newRpcCodec(msg, c, cf),
|
||||||
seq: seq,
|
seq: seq,
|
||||||
}
|
}
|
||||||
defer stream.Close()
|
defer stream.Close()
|
||||||
@ -177,7 +177,7 @@ func (r *rpcClient) stream(ctx context.Context, address string, req Request, opt
|
|||||||
context: ctx,
|
context: ctx,
|
||||||
request: req,
|
request: req,
|
||||||
closed: make(chan bool),
|
closed: make(chan bool),
|
||||||
codec: newRpcPlusCodec(msg, c, cf),
|
codec: newRpcCodec(msg, c, cf),
|
||||||
}
|
}
|
||||||
|
|
||||||
ch := make(chan error, 1)
|
ch := make(chan error, 1)
|
||||||
|
@ -87,7 +87,7 @@ func (rwc *readWriteCloser) Close() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func newRpcPlusCodec(req *transport.Message, client transport.Client, c codec.NewCodec) *rpcCodec {
|
func newRpcCodec(req *transport.Message, client transport.Client, c codec.NewCodec) *rpcCodec {
|
||||||
rwc := &readWriteCloser{
|
rwc := &readWriteCloser{
|
||||||
wbuf: bytes.NewBuffer(nil),
|
wbuf: bytes.NewBuffer(nil),
|
||||||
rbuf: bytes.NewBuffer(nil),
|
rbuf: bytes.NewBuffer(nil),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user