Skip to content

Commit

Permalink
Merge pull request #1655 from etungsten/tokio-actix
Browse files Browse the repository at this point in the history
sources: update actix and tokio packages
  • Loading branch information
etungsten committed Jul 14, 2021
2 parents d3f33a4 + fbb74ee commit e4e610e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
35 changes: 18 additions & 17 deletions sources/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sources/api/apiserver/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ fn transaction_name(query: &web::Query<HashMap<String, String>>) -> &str {
// Can also override `render_response` if we want to change headers, content type, etc.
impl ResponseError for error::Error {
/// Maps our error types to the HTTP error code they should return.
fn error_response(&self) -> BaseHttpResponse<Body> {
fn error_response(&self) -> HttpResponse<Body> {
use error::Error::*;
let status_code = match self {
// 400 Bad Request
Expand Down Expand Up @@ -498,7 +498,7 @@ impl ResponseError for error::Error {
UpdateLockOpen { .. } => StatusCode::INTERNAL_SERVER_ERROR,
};

BaseHttpResponse::new(status_code)
HttpResponse::new(status_code)
}
}

Expand Down

0 comments on commit e4e610e

Please sign in to comment.