diff options
author | Alex Auvolat <alex@adnab.me> | 2021-12-08 22:38:01 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-12-08 22:38:01 +0100 |
commit | 55f57df82e8486065bd563c21e1ea858c9f8969d (patch) | |
tree | 432f4f106bbc637b3f7fd42dcee85cc5cfb2f275 /src/cert_store.rs | |
parent | 62c745898d35287577caa0bd384cc7bc39f6b4ec (diff) | |
download | tricot-55f57df82e8486065bd563c21e1ea858c9f8969d.tar.gz tricot-55f57df82e8486065bd563c21e1ea858c9f8969d.zip |
Cleanup locks
Diffstat (limited to 'src/cert_store.rs')
-rw-r--r-- | src/cert_store.rs | 1 |
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 |