diff --git a/index-scheduler/src/lib.rs b/index-scheduler/src/lib.rs index b5b061a50..2ad263ca4 100644 --- a/index-scheduler/src/lib.rs +++ b/index-scheduler/src/lib.rs @@ -1297,8 +1297,13 @@ impl IndexScheduler { let task = self .index_scheduler .get_task(self.rtxn, task_id) - .map_err(io::Error::other)? - .ok_or_else(|| io::Error::other(Error::CorruptedTaskQueue))?; + .map_err(|err| io::Error::new(io::ErrorKind::Other, err))? + .ok_or_else(|| { + io::Error::new( + io::ErrorKind::Other, + Error::CorruptedTaskQueue, + ) + })?; serde_json::to_writer( &mut self.buffer, diff --git a/meilisearch/src/option.rs b/meilisearch/src/option.rs index e1f16d888..abb2bab6c 100644 --- a/meilisearch/src/option.rs +++ b/meilisearch/src/option.rs @@ -70,10 +70,6 @@ const MEILI_MAX_INDEXING_MEMORY: &str = "MEILI_MAX_INDEXING_MEMORY"; const MEILI_MAX_INDEXING_THREADS: &str = "MEILI_MAX_INDEXING_THREADS"; const DEFAULT_LOG_EVERY_N: usize = 100_000; -fn parse_url(s: &str) -> Result { - Url::parse(s) -} - // Each environment (index and task-db) is taking space in the virtual address space. // Ideally, indexes can occupy 2TiB each to avoid having to manually resize them. // The actual size of the virtual address space is computed at startup to determine how many 2TiB indexes can be