api: acme accounts: use name as worker ID

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-11 18:07:03 +02:00
parent f09f4d5fd5
commit 9fe4c79005
1 changed files with 4 additions and 4 deletions

View File

@ -214,13 +214,13 @@ fn register_account(
WorkerTask::spawn( WorkerTask::spawn(
"acme-register", "acme-register",
None, Some(name.to_string()),
auth_id, auth_id,
true, true,
move |worker| async move { move |worker| async move {
let mut client = AcmeClient::new(directory); let mut client = AcmeClient::new(directory);
worker.log("Registering ACME account..."); worker.log(format!("Registering ACME account '{}'...", &name));
let account = let account =
do_register_account(&mut client, &name, tos_url.is_some(), contact, None).await?; do_register_account(&mut client, &name, tos_url.is_some(), contact, None).await?;
@ -274,7 +274,7 @@ pub fn update_account(
WorkerTask::spawn( WorkerTask::spawn(
"acme-update", "acme-update",
None, Some(name.to_string()),
auth_id, auth_id,
true, true,
move |_worker| async move { move |_worker| async move {
@ -319,7 +319,7 @@ pub fn deactivate_account(
WorkerTask::spawn( WorkerTask::spawn(
"acme-deactivate", "acme-deactivate",
None, Some(name.to_string()),
auth_id, auth_id,
true, true,
move |worker| async move { move |worker| async move {