Cleanup locks

This commit is contained in:
Alex 2021-12-08 22:38:01 +01:00
parent 62c745898d
commit 55f57df82e
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1

View file

@ -232,6 +232,7 @@ impl CertStore {
.kv_put_json(&format!("certs/{}", domain), &certser) .kv_put_json(&format!("certs/{}", domain), &certser)
.await?; .await?;
self.consul.release(&lock_path, "".into(), &session).await?; self.consul.release(&lock_path, "".into(), &session).await?;
self.consul.kv_delete(&lock_path).await?;
let cert = Arc::new(Cert::new(certser)?); let cert = Arc::new(Cert::new(certser)?);
self.certs self.certs