Skip to content

Commit

Permalink
address CR.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Feb 6, 2023
1 parent 680a0b3 commit 68a0298
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/src/grpc/meta_event_service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ macro_rules! handle_request {

let res = handle
.await
.map_err(|e| {
error!("Fail to process request from meta, err:{}", e);
Box::new(e) as _
})
.map_err(|e| Box::new(e) as _)
.context(ErrWithCause {
code: StatusCode::Internal,
msg: "fail to join task",
Expand All @@ -89,6 +86,7 @@ macro_rules! handle_request {
resp.header = Some(error::build_ok_header());
}
Ok(Err(e)) | Err(e) => {
error!("Fail to process request from meta, err:{}", e);
resp.header = Some(error::build_err_header(e));
}
};
Expand Down

0 comments on commit 68a0298

Please sign in to comment.