From 7e379b3d14fc19a5302fe6b8bee7594f90728919 Mon Sep 17 00:00:00 2001 From: Tamo Date: Wed, 20 Nov 2024 12:27:12 +0100 Subject: [PATCH] remove useless prints --- crates/index-scheduler/src/lib.rs | 2 -- crates/meilisearch/tests/snapshot/mod.rs | 1 - crates/meilitool/src/upgrade/v1_10.rs | 7 ------- 3 files changed, 10 deletions(-) diff --git a/crates/index-scheduler/src/lib.rs b/crates/index-scheduler/src/lib.rs index 4c7d9e363..36ab93eb0 100644 --- a/crates/index-scheduler/src/lib.rs +++ b/crates/index-scheduler/src/lib.rs @@ -948,7 +948,6 @@ impl IndexScheduler { processing: &ProcessingTasks, query: &Query, ) -> Result { - dbg!(); let mut batches = self.all_batch_ids(rtxn)?; if let Some(batch_id) = processing.batch.as_ref().map(|batch| batch.uid) { batches.insert(batch_id); @@ -4160,7 +4159,6 @@ mod tests { tasks: [0, 1, 2, 3].into_iter().collect(), }; let task_cancelation = index_scheduler.register(kind, None, false).unwrap(); - println!("HEEERE"); handle.advance_n_successful_batches(1); snapshot!(snapshot_index_scheduler(&index_scheduler), name: "start"); diff --git a/crates/meilisearch/tests/snapshot/mod.rs b/crates/meilisearch/tests/snapshot/mod.rs index b4454a7f2..976551190 100644 --- a/crates/meilisearch/tests/snapshot/mod.rs +++ b/crates/meilisearch/tests/snapshot/mod.rs @@ -65,7 +65,6 @@ async fn perform_snapshot() { let next_task = task.uid() + 1; loop { let (value, code) = index.get_task(next_task).await; - dbg!(&value); if code != 404 && value["status"].as_str() == Some("succeeded") { break; } diff --git a/crates/meilitool/src/upgrade/v1_10.rs b/crates/meilitool/src/upgrade/v1_10.rs index 3dd7c72a2..2efc1773c 100644 --- a/crates/meilitool/src/upgrade/v1_10.rs +++ b/crates/meilitool/src/upgrade/v1_10.rs @@ -76,13 +76,6 @@ fn update_index_stats( ) -> anyhow::Result<()> { let ctx = || format!("while updating index stats for index `{index_uid}`"); - let stats: Option<&str> = index_stats - .remap_data_type::() - .get(sched_wtxn, &index_uuid) - .with_context(ctx) - .with_context(|| "While reading value")?; - dbg!(stats); - let stats: Option = index_stats .remap_data_type::>() .get(sched_wtxn, &index_uuid)