From 4778884105e273711535a0be434045476c6bfb0f Mon Sep 17 00:00:00 2001 From: ad hoc Date: Thu, 19 May 2022 20:19:34 +0200 Subject: [PATCH] remove dump status route --- meilisearch-http/src/routes/dump.rs | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/meilisearch-http/src/routes/dump.rs b/meilisearch-http/src/routes/dump.rs index 7d32fdda5..55469b0b4 100644 --- a/meilisearch-http/src/routes/dump.rs +++ b/meilisearch-http/src/routes/dump.rs @@ -2,7 +2,6 @@ use actix_web::{web, HttpRequest, HttpResponse}; use log::debug; use meilisearch_error::ResponseError; use meilisearch_lib::MeiliSearch; -use serde::{Deserialize, Serialize}; use serde_json::json; use crate::analytics::Analytics; @@ -11,10 +10,7 @@ use crate::extractors::sequential_extractor::SeqHandler; use crate::task::SummarizedTaskView; pub fn configure(cfg: &mut web::ServiceConfig) { - cfg.service(web::resource("").route(web::post().to(SeqHandler(create_dump)))) - .service( - web::resource("/{dump_uid}/status").route(web::get().to(SeqHandler(get_dump_status))), - ); + cfg.service(web::resource("").route(web::post().to(SeqHandler(create_dump)))); } pub async fn create_dump( @@ -29,24 +25,3 @@ pub async fn create_dump( debug!("returns: {:?}", res); Ok(HttpResponse::Accepted().json(res)) } - -#[derive(Debug, Serialize)] -#[serde(rename_all = "camelCase")] -struct DumpStatusResponse { - status: String, -} - -#[derive(Deserialize)] -struct DumpParam { - dump_uid: String, -} - -async fn get_dump_status( - meilisearch: GuardedData, MeiliSearch>, - path: web::Path, -) -> Result { - todo!(); - - // debug!("returns: {:?}", res); - // Ok(HttpResponse::Ok().json(res)) -}