Skip to content

Commit

Permalink
chore: fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantJoshi00 committed Nov 10, 2023
1 parent 604223d commit c5c57f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/routes/data.rs
@@ -1,7 +1,10 @@
use axum::{
error_handling::HandleErrorLayer, extract, response::IntoResponse, routing::post, Json,
extract, routing::post, Json,
};

#[cfg(feature = "limit")]
use axum::{error_handling::HandleErrorLayer, response::IntoResponse};

#[cfg(feature = "middleware")]
use axum::middleware;

Expand All @@ -22,8 +25,9 @@ use self::types::Validation;
mod transformers;
pub mod types;

#[cfg(feature = "limit")]
const BUFFER_LIMIT: usize = 1024;

#[cfg(feature = "limit")]
async fn ratelimit_err_handler(_: axum::BoxError) -> impl IntoResponse {
(hyper::StatusCode::TOO_MANY_REQUESTS, "Rate Limit Applied")
}
Expand Down

0 comments on commit c5c57f6

Please sign in to comment.