src/server/worker_task.rs: Avoid using pbs-api-type::Authid
Because we want to move worker_task.rs into proxmox-rest-server crate.
This commit is contained in:
@ -215,7 +215,7 @@ fn register_account(
|
||||
WorkerTask::spawn(
|
||||
"acme-register",
|
||||
Some(name.to_string()),
|
||||
auth_id,
|
||||
auth_id.to_string(),
|
||||
true,
|
||||
move |worker| async move {
|
||||
let mut client = AcmeClient::new(directory);
|
||||
@ -275,7 +275,7 @@ pub fn update_account(
|
||||
WorkerTask::spawn(
|
||||
"acme-update",
|
||||
Some(name.to_string()),
|
||||
auth_id,
|
||||
auth_id.to_string(),
|
||||
true,
|
||||
move |_worker| async move {
|
||||
let data = match contact {
|
||||
@ -320,7 +320,7 @@ pub fn deactivate_account(
|
||||
WorkerTask::spawn(
|
||||
"acme-deactivate",
|
||||
Some(name.to_string()),
|
||||
auth_id,
|
||||
auth_id.to_string(),
|
||||
true,
|
||||
move |worker| async move {
|
||||
match AcmeClient::load(&name)
|
||||
|
@ -119,9 +119,9 @@ pub fn create_datastore(
|
||||
WorkerTask::new_thread(
|
||||
"create-datastore",
|
||||
Some(config.name.to_string()),
|
||||
auth_id,
|
||||
auth_id.to_string(),
|
||||
to_stdout,
|
||||
move |worker| do_create_datastore(lock, section_config, config, Some(&worker)),
|
||||
move |worker| do_create_datastore(lock, section_config, config, Some(&worker)),
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user