diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-20 09:56:42 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-20 09:56:42 +0100 |
commit | cd54ce4a394066e51c671e24da119b0a5b358e13 (patch) | |
tree | 2bf46886c7e600617d0e3e1c14c49c8b6d62363e | |
parent | 06f7e757cf2bcad9a75f44959570841e18a57092 (diff) |
Make sure to gossip about own state every 500ms
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | cli/src/profile.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/src/profile.rs b/cli/src/profile.rs index d9a8e54..953a8e3 100644 --- a/cli/src/profile.rs +++ b/cli/src/profile.rs @@ -94,7 +94,8 @@ async fn profile_serve(matches: &ArgMatches) -> Result<()> { log::info!("Serving..."); while running.load(Ordering::SeqCst) { - tokio::time::sleep(std::time::Duration::from_millis(500)).await // sleep not so busy + tokio::time::sleep(std::time::Duration::from_millis(500)).await; // sleep not so busy + profile.gossip_own_state("distrox".to_string()).await? } log::info!("Shutting down..."); profile.exit().await |