pull: pass params as non-ref in pull_store
so that it's possible to modify them in-place without cloning. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
@ -128,7 +128,7 @@ pub fn do_sync_job(
|
||||
sync_job.remote_store,
|
||||
);
|
||||
|
||||
pull_store(&worker, &client, &pull_params).await?;
|
||||
pull_store(&worker, &client, pull_params).await?;
|
||||
|
||||
task_log!(worker, "sync job '{}' end", &job_id);
|
||||
|
||||
@ -278,7 +278,7 @@ async fn pull(
|
||||
remote_store,
|
||||
);
|
||||
|
||||
let pull_future = pull_store(&worker, &client, &pull_params);
|
||||
let pull_future = pull_store(&worker, &client, pull_params);
|
||||
let future = select! {
|
||||
success = pull_future.fuse() => success,
|
||||
abort = worker.abort_future().map(|_| Err(format_err!("pull aborted"))) => abort,
|
||||
|
Reference in New Issue
Block a user