aboutsummaryrefslogtreecommitdiff
path: root/src/cert_store.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 17:50:40 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 17:50:40 +0100
commit3bdb417bfb87d7ef3381be2d56346a7995c54dde (patch)
treea1c1f503f9010c6af37e2098e9125b39219274da /src/cert_store.rs
parent0e6e60d35a20d3c5e691f01e7f9372a390c18dea (diff)
downloadtricot-3bdb417bfb87d7ef3381be2d56346a7995c54dde.tar.gz
tricot-3bdb417bfb87d7ef3381be2d56346a7995c54dde.zip
Exit more agressively on certain errors
Diffstat (limited to 'src/cert_store.rs')
-rw-r--r--src/cert_store.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cert_store.rs b/src/cert_store.rs
index 6cc3ea9..e2ad62b 100644
--- a/src/cert_store.rs
+++ b/src/cert_store.rs
@@ -39,7 +39,7 @@ impl CertStore {
})
}
- pub async fn watch_proxy_config(self: Arc<Self>) {
+ pub async fn watch_proxy_config(self: Arc<Self>) -> Result<()> {
let mut rx_proxy_config = self.rx_proxy_config.clone();
while rx_proxy_config.changed().await.is_ok() {
@@ -59,6 +59,8 @@ impl CertStore {
}
}
}
+
+ bail!("rx_proxy_config closed");
}
pub fn get_cert_for_https(self: &Arc<Self>, domain: &str) -> Result<Arc<Cert>> {