Remove unused imports/code on Windows

This commit is contained in:
Kerollmops
2025-11-03 18:52:58 +01:00
parent f7d9425c59
commit eab2b806e9

View File

@@ -110,7 +110,6 @@ impl IndexScheduler {
Ok(access_key), Ok(access_key),
Ok(secret_key), Ok(secret_key),
) => { ) => {
let runtime = self.runtime.as_ref().expect("Runtime not initialized");
#[cfg(not(unix))] #[cfg(not(unix))]
{ {
let _ = ( let _ = (
@@ -124,16 +123,18 @@ impl IndexScheduler {
panic!("Non-unix platform does not support S3 snapshotting"); panic!("Non-unix platform does not support S3 snapshotting");
} }
#[cfg(unix)] #[cfg(unix)]
runtime.block_on(self.process_snapshot_to_s3( self.runtime.as_ref().expect("Runtime not initialized").block_on(
progress, self.process_snapshot_to_s3(
bucket_url, progress,
bucket_region, bucket_url,
bucket_name, bucket_region,
PathBuf::from_slash(snapshot_prefix), bucket_name,
access_key, PathBuf::from_slash(snapshot_prefix),
secret_key, access_key,
tasks, secret_key,
)) tasks,
),
)
} }
( (
Err((_, VarError::NotPresent)), Err((_, VarError::NotPresent)),