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(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)),
|
||||
|
||||
Reference in New Issue
Block a user