summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-02-02 16:24:30 +0100
committerAlex Auvolat <alex@adnab.me>2023-02-02 16:24:30 +0100
commita11ed03031cb59b412950d62960fc27cf919e2bf (patch)
treee08fb386d8bd24977ae119c8b214ed3932c5a035 /examples
parentff14118db7ac838910f4ace03bc24f6dbafc62b3 (diff)
downloaddf-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.rs3
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());
}
}