diff options
author | Alex Auvolat <alex@adnab.me> | 2023-02-02 16:24:30 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-02-02 16:24:30 +0100 |
commit | a11ed03031cb59b412950d62960fc27cf919e2bf (patch) | |
tree | e08fb386d8bd24977ae119c8b214ed3932c5a035 /examples | |
parent | ff14118db7ac838910f4ace03bc24f6dbafc62b3 (diff) | |
download | df-consul-a11ed03031cb59b412950d62960fc27cf919e2bf.tar.gz df-consul-a11ed03031cb59b412950d62960fc27cf919e2bf.zip |
Avoid sending useless changes to downstream listener
Diffstat (limited to 'examples')
-rw-r--r-- | examples/watch_test.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/watch_test.rs b/examples/watch_test.rs index d4d48a0..c697a53 100644 --- a/examples/watch_test.rs +++ b/examples/watch_test.rs @@ -22,6 +22,7 @@ async fn main() { if watch.changed().await.is_err() { break; } - println!("\n{:?}", watch.borrow_and_update()); + //println!("\n{:?}", watch.borrow_and_update()); + println!("changed, {} values", watch.borrow_and_update().len()); } } |