Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm committed Nov 13, 2024
1 parent da7162f commit 5a00760
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rocketmq-remoting/src/rpc/rpc_client_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ impl RpcClientUtils {
};
match rpc_response.exception {
None => {}
Some(value) => {
cmd.set_remark_option_mut(Some(CheetahString::from_string(value.to_string())))
}
Some(value) => cmd.set_remark_mut(value.to_string()),
}
if let Some(ref _body) = rpc_response.body {
return cmd;
Expand Down

0 comments on commit 5a00760

Please sign in to comment.