tiflow
tiflow copied to clipboard
engine: remove error field from rpc response structure
We have implemented rpcerror to make it easier to handle errors from gRPC calls in a uniform way. It's no need to explicitly define the error in the response structures. Otherwise, we have to check two places for errors, one is the error returned by the gRPC call, and the other is the error in the response structure.