From 47eae324b3641051bb9beb92a0f7ec3299429d39 Mon Sep 17 00:00:00 2001
From: Amaury <1293565+amaury1093@users.noreply.github.com>
Date: Sat, 30 Nov 2024 15:25:56 +0100
Subject: [PATCH] remove unused
---
backend/src/http/v1/mod.rs | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/backend/src/http/v1/mod.rs b/backend/src/http/v1/mod.rs
index 3fdfe8dfb..7d4bf4f95 100644
--- a/backend/src/http/v1/mod.rs
+++ b/backend/src/http/v1/mod.rs
@@ -14,30 +14,5 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
-use lapin::Channel;
-use std::sync::Arc;
-use warp::http::StatusCode;
-use warp::Filter;
-
-use super::ReacherResponseError;
-
pub mod bulk;
pub mod check_email;
-
-/// Warp filter that extracts lapin Channel, or returns a 503 error if it's not
-/// available.
-pub fn with_channel(
- channel: Option>,
-) -> impl Filter,), Error = warp::Rejection> + Clone {
- warp::any().and_then(move || {
- let channel = channel.clone();
- async move {
- channel.ok_or_else(|| {
- warp::reject::custom(ReacherResponseError::new(
- StatusCode::SERVICE_UNAVAILABLE,
- "Please configure a RabbitMQ instance on Reacher before calling this endpoint",
- ))
- })
- }
- })
-}