aboutsummaryrefslogtreecommitdiff
path: root/src/cert_store.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 22:38:01 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 22:38:01 +0100
commit55f57df82e8486065bd563c21e1ea858c9f8969d (patch)
tree432f4f106bbc637b3f7fd42dcee85cc5cfb2f275 /src/cert_store.rs
parent62c745898d35287577caa0bd384cc7bc39f6b4ec (diff)
downloadtricot-55f57df82e8486065bd563c21e1ea858c9f8969d.tar.gz
tricot-55f57df82e8486065bd563c21e1ea858c9f8969d.zip
Cleanup locks
Diffstat (limited to 'src/cert_store.rs')
-rw-r--r--src/cert_store.rs1
1 files changed, 1 insertions, 0 deletions
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