go fmt
This commit is contained in:
parent
88817dc53f
commit
58bc4c103f
@ -230,7 +230,7 @@ func (r *rpcClient) stream(ctx context.Context, node *registry.Node, req Request
|
||||
response: rsp,
|
||||
closed: make(chan bool),
|
||||
codec: codec,
|
||||
id: id,
|
||||
id: id,
|
||||
// signal the end of stream,
|
||||
eos: true,
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ func (r *rpcStream) Close() error {
|
||||
Method: r.request.Method(),
|
||||
Endpoint: r.request.Endpoint(),
|
||||
Type: codec.Error,
|
||||
Error: lastStreamResponseError,
|
||||
Error: lastStreamResponseError,
|
||||
}, nil)
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ func (s *Socket) Send(m *transport.Message) error {
|
||||
// make copy
|
||||
msg := &transport.Message{
|
||||
Header: make(map[string]string),
|
||||
Body: make([]byte, len(m.Body)),
|
||||
Body: make([]byte, len(m.Body)),
|
||||
}
|
||||
|
||||
// copy headers
|
||||
|
Loading…
Reference in New Issue
Block a user