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