aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-05-09 16:19:09 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-05-09 16:19:09 +0200
commit41caf6090ca8b24c162946054c48d59387d21200 (patch)
tree975b4f0b3928ddc0b353e3b80ed6f169a4e42509 /src/main.rs
parent76c84042120b97ee98af6a1c40ab86aca062408a (diff)
downloaddiplonat-41caf6090ca8b24c162946054c48d59387d21200.tar.gz
diplonat-41caf6090ca8b24c162946054c48d59387d21200.zip
Add context to errors
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index a4c4e21..471573b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -13,7 +13,8 @@ mod config;
async fn main() {
pretty_env_logger::init();
- let ctx = diplonat::setup().expect("Setup failed:");
+ let ctx = diplonat::setup().expect("Setup failed");
+ diplonat::listen();
/*
let url = format!("http://127.0.0.1:8500/v1/catalog/node/{}", config.consul_node_name);
let resp = reqwest::get(&url)