This commit is contained in:
Asim Aslam 2019-08-15 20:54:09 +01:00
parent 88817dc53f
commit 58bc4c103f
3 changed files with 3 additions and 3 deletions

View File

@ -230,7 +230,7 @@ func (r *rpcClient) stream(ctx context.Context, node *registry.Node, req Request
response: rsp, response: rsp,
closed: make(chan bool), closed: make(chan bool),
codec: codec, codec: codec,
id: id, id: id,
// signal the end of stream, // signal the end of stream,
eos: true, eos: true,
} }

View File

@ -133,7 +133,7 @@ func (r *rpcStream) Close() error {
Method: r.request.Method(), Method: r.request.Method(),
Endpoint: r.request.Endpoint(), Endpoint: r.request.Endpoint(),
Type: codec.Error, Type: codec.Error,
Error: lastStreamResponseError, Error: lastStreamResponseError,
}, nil) }, nil)
} }

View File

@ -70,7 +70,7 @@ func (s *Socket) Send(m *transport.Message) error {
// make copy // make copy
msg := &transport.Message{ msg := &transport.Message{
Header: make(map[string]string), Header: make(map[string]string),
Body: make([]byte, len(m.Body)), Body: make([]byte, len(m.Body)),
} }
// copy headers // copy headers