From 7a8e948ee712458e710ef4375b88695e6118ddf4 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 6 Jun 2024 10:26:23 +0200 Subject: [PATCH] acme-api: pass parameters by reference Signed-off-by: Dietmar Maurer --- proxmox-acme-api/src/certificate_helpers.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxmox-acme-api/src/certificate_helpers.rs b/proxmox-acme-api/src/certificate_helpers.rs index 8f8b28f9..0db10c40 100644 --- a/proxmox-acme-api/src/certificate_helpers.rs +++ b/proxmox-acme-api/src/certificate_helpers.rs @@ -9,7 +9,7 @@ use proxmox_sys::{task_log, task_warn}; use crate::types::{AcmeConfig, AcmeDomain}; -pub async fn revoke_certificate(acme_config: AcmeConfig, certificate: &[u8]) -> Result<(), Error> { +pub async fn revoke_certificate(acme_config: &AcmeConfig, certificate: &[u8]) -> Result<(), Error> { let mut acme = super::account_config::load_account_config(&acme_config.account) .await? .client(); @@ -26,8 +26,8 @@ pub struct OrderedCertificate { pub async fn order_certificate( worker: Arc, - acme_config: AcmeConfig, - domains: Vec, + acme_config: &AcmeConfig, + domains: &[AcmeDomain], ) -> Result, Error> { use proxmox_acme::authorization::Status; use proxmox_acme::order::Identifier;