Skip to content

Commit

Permalink
Add comment in the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Apr 11, 2024
1 parent cb03f10 commit a46c702
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/examples/z_get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ async fn main() {
println!("Sending Query '{selector}'...");
let replies = session
.get(&selector)
// // By default get receives replies from a FIFO.
// // Uncomment this line to use a ring channel instead.
// // More information on the ring channel are available in the z_pull example.
.with(zenoh::handlers::RingChannel::default())
.value(value)
.target(target)
.timeout(timeout)
Expand Down
4 changes: 4 additions & 0 deletions examples/examples/z_queryable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ async fn main() {
println!("Declaring Queryable on '{key_expr}'...");
let queryable = session
.declare_queryable(&key_expr)
// // By default queryable receives queries from a FIFO.
// // Uncomment this line to use a ring channel instead.
// // More information on the ring channel are available in the z_pull example.
// .with(zenoh::handlers::RingChannel::default())
.complete(complete)
.res()
.await
Expand Down

0 comments on commit a46c702

Please sign in to comment.