From eab2b806e984cd200f5318502a8fbf16193c93b7 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Mon, 3 Nov 2025 18:52:58 +0100 Subject: [PATCH] Remove unused imports/code on Windows --- .../scheduler/process_snapshot_creation.rs | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs b/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs index 340495c05..9d3c2516f 100644 --- a/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs +++ b/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs @@ -110,7 +110,6 @@ impl IndexScheduler { Ok(access_key), Ok(secret_key), ) => { - let runtime = self.runtime.as_ref().expect("Runtime not initialized"); #[cfg(not(unix))] { let _ = ( @@ -124,16 +123,18 @@ impl IndexScheduler { panic!("Non-unix platform does not support S3 snapshotting"); } #[cfg(unix)] - runtime.block_on(self.process_snapshot_to_s3( - progress, - bucket_url, - bucket_region, - bucket_name, - PathBuf::from_slash(snapshot_prefix), - access_key, - secret_key, - tasks, - )) + self.runtime.as_ref().expect("Runtime not initialized").block_on( + self.process_snapshot_to_s3( + progress, + bucket_url, + bucket_region, + bucket_name, + PathBuf::from_slash(snapshot_prefix), + access_key, + secret_key, + tasks, + ), + ) } ( Err((_, VarError::NotPresent)),