From 55f57df82e8486065bd563c21e1ea858c9f8969d Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 8 Dec 2021 22:38:01 +0100 Subject: [PATCH] Cleanup locks --- src/cert_store.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cert_store.rs b/src/cert_store.rs index bc05d1b..ced9966 100644 --- a/src/cert_store.rs +++ b/src/cert_store.rs @@ -232,6 +232,7 @@ impl CertStore { .kv_put_json(&format!("certs/{}", domain), &certser) .await?; self.consul.release(&lock_path, "".into(), &session).await?; + self.consul.kv_delete(&lock_path).await?; let cert = Arc::new(Cert::new(certser)?); self.certs