mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-20 09:47:50 +02:00
rpc: actually return an error if ReqSend fails
This commit is contained in:
parent
000d8bba66
commit
4d2765e5f2
@ -86,7 +86,7 @@ func (c *Client) Send(ctx context.Context, r *pdu.SendReq) (*pdu.SendRes, zfs.St
|
|||||||
// TODO the returned sendStream may return a read error created by the remote side
|
// TODO the returned sendStream may return a read error created by the remote side
|
||||||
res, streamCopier, err := c.dataClient.ReqSend(ctx, r)
|
res, streamCopier, err := c.dataClient.ReqSend(ctx, r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, nil
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
if streamCopier == nil {
|
if streamCopier == nil {
|
||||||
return res, nil, nil
|
return res, nil, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user