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:
Fabian Grünbichler
2022-05-12 16:22:09 +02:00
parent 2a088b9975
commit d9aad37f2f
2 changed files with 7 additions and 7 deletions

View File

@ -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,