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,
|
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,
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user