mirror of
https://github.com/smallnest/rpcx.git
synced 2026-04-22 23:27:06 +08:00
fix SendRaw Failfast mode swallows error (#902)
SendRaw in Failfast mode always returned nil as the error even when wrapSendRaw failed. Return the actual error to match the behavior of Call's Failfast mode.
This commit is contained in:
+1
-1
@@ -869,7 +869,7 @@ func (c *xClient) SendRaw(ctx context.Context, r *protocol.Message) (map[string]
|
||||
}
|
||||
}
|
||||
|
||||
return m, payload, nil
|
||||
return m, payload, err
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user