diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-22 10:33:09 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-22 10:33:09 +0200 |
commit | d583c17782977c3547da563a62e6f9f4fada15f3 (patch) | |
tree | 6887e6e681045dbd9dbfd41ecd3f699f073484ae /src/main.rs | |
parent | 2a6b440270dc5d9b18061b69f8f700793d1ad0eb (diff) | |
download | diplonat-d583c17782977c3547da563a62e6f9f4fada15f3.tar.gz diplonat-d583c17782977c3547da563a62e6f9f4fada15f3.zip |
We are now able to watch
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
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 { |