aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 13:28:07 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 13:28:07 +0100
commitc49b2075a30460a319ce53da300e4943d45d5add (patch)
tree2c9e146b89873f1b79e2a7397c567e1e82299b34 /src/main.rs
parent35b46e64e7c9a176aeadb5815a609847bb237bb3 (diff)
downloadtricot-c49b2075a30460a319ce53da300e4943d45d5add.tar.gz
tricot-c49b2075a30460a319ce53da300e4943d45d5add.zip
Try to fix things
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index bea09bd..d495fb2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -54,10 +54,7 @@ struct Opt {
pub https_bind_addr: SocketAddr,
/// E-mail address for Let's Encrypt certificate requests
- #[structopt(
- long = "letsencrypt-email",
- env = "TRICOT_LETSENCRYPT_EMAIL",
- )]
+ #[structopt(long = "letsencrypt-email", env = "TRICOT_LETSENCRYPT_EMAIL")]
pub letsencrypt_email: String,
}
@@ -75,7 +72,11 @@ async fn main() {
let consul = consul::Consul::new(&opt.consul_addr, &opt.consul_kv_prefix, &opt.node_name);
let mut rx_proxy_config = proxy_config::spawn_proxy_config_task(consul.clone());
- let cert_store = cert_store::CertStore::new(consul.clone(), rx_proxy_config.clone(), opt.letsencrypt_email.clone());
+ let cert_store = cert_store::CertStore::new(
+ consul.clone(),
+ rx_proxy_config.clone(),
+ opt.letsencrypt_email.clone(),
+ );
tokio::spawn(cert_store.clone().watch_proxy_config());
tokio::spawn(http::serve_http(opt.http_bind_addr, consul.clone()));