aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index ead8c32..028f16e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -14,9 +14,11 @@ async fn main() {
let diplo = Diplonat::new().await.expect("Setup failed");
diplo.listen().await.expect("A runtime error occured");
*/
- let c = Consul::new("http://127.0.0.1:8500");
- let cn = c.catalog_node("lheureduthe").await.expect("Failed to fetch API");
+ let mut c = Consul::new("http://127.0.0.1:8500");
+ let cn = c.watch_node("lheureduthe").await.expect("Failed to fetch API");
println!("{:#?}", cn);
+ let cn2 = c.watch_node("lheureduthe").await.expect("Failed to fetch API");
+ println!("{:#?}", cn2);
/*
let gateway = match search_gateway(Default::default()).await {