mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-11-22 04:36:32 +00:00
Remove unused imports/code on Windows
This commit is contained in:
@@ -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)),
|
||||||
|
|||||||
Reference in New Issue
Block a user