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(secret_key),
) => {
let runtime = self.runtime.as_ref().expect("Runtime not initialized");
#[cfg(not(unix))]
{
let _ = (
@@ -124,7 +123,8 @@ impl IndexScheduler {
panic!("Non-unix platform does not support S3 snapshotting");
}
#[cfg(unix)]
runtime.block_on(self.process_snapshot_to_s3(
self.runtime.as_ref().expect("Runtime not initialized").block_on(
self.process_snapshot_to_s3(
progress,
bucket_url,
bucket_region,
@@ -133,7 +133,8 @@ impl IndexScheduler {
access_key,
secret_key,
tasks,
))
),
)
}
(
Err((_, VarError::NotPresent)),