From f7f34fb7147d8f2a97e8b4d76f591ef22ad045aa Mon Sep 17 00:00:00 2001 From: Himanshu Malviya Date: Mon, 3 Oct 2022 11:04:54 +0000 Subject: [PATCH] deleted v1.rs --- meilisearch-lib/src/dump/loaders/v1.rs | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 meilisearch-lib/src/dump/loaders/v1.rs diff --git a/meilisearch-lib/src/dump/loaders/v1.rs b/meilisearch-lib/src/dump/loaders/v1.rs deleted file mode 100644 index a07475b56..000000000 --- a/meilisearch-lib/src/dump/loaders/v1.rs +++ /dev/null @@ -1,24 +0,0 @@ -use std::path::Path; - -use serde::{Deserialize, Serialize}; - -use crate::index_controller::IndexMetadata; - -#[derive(Serialize, Deserialize, Debug)] -#[serde(rename_all = "camelCase")] -pub struct MetadataV1 { - pub db_version: String, - indexes: Vec, -} - -impl MetadataV1 { - #[allow(dead_code, unreachable_code, unused_variables)] - pub fn load_dump( - self, - src: impl AsRef, - dst: impl AsRef, - size: usize, - indexer_options: &IndexerOpts, - ) -> anyhow::Result<()> { - anyhow::bail!("The version 1 of the dumps is not supported anymore. You can re-export your dump from a version between 0.21 and 0.24, or start fresh from a version 0.25 onwards.") -}