Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
“Giems” committed Feb 2, 2024
1 parent 14e8919 commit dce8e32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ strum = { workspace = true }
dotenvy = { workspace = true }
log = { workspace = true }
tower = { workspace = true }
hyper = { wokrspace = true }
axum = { workspace = true }
tower-http = { workspace = true }
tracing-subscriber = { workspace = true }
Expand Down
6 changes: 2 additions & 4 deletions server/src/handle_error.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
use axum::response::IntoResponse;
use hyper::StatusCode;
use crate::errors::NightlyError;
use axum::{http::StatusCode, response::IntoResponse};
use log::error;
use tower::BoxError;

use crate::errors::NightlyError;

pub async fn handle_error(error: BoxError) -> impl IntoResponse {
error!("Request error {:?}", error);
if error.is::<tower::timeout::error::Elapsed>() {
Expand Down
2 changes: 1 addition & 1 deletion server/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use hyper::{header, Method};
use axum::http::{header, Method};
use std::time::{Duration, SystemTime, UNIX_EPOCH};
use tower_http::cors::{Any, CorsLayer};

Expand Down

0 comments on commit dce8e32

Please sign in to comment.