Skip to content

Commit

Permalink
captured leaks from adminspace
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Dec 14, 2023
1 parent 2b34dae commit 26d2c61
Show file tree
Hide file tree
Showing 6 changed files with 2,851 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions examples/examples/z_get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@ async fn main() {
println!("Opening session...");
let session = zenoh::open(config).res().await.unwrap();

Check failure on line 29 in examples/examples/z_get.rs

View workflow job for this annotation

GitHub Actions / Run checks on ubuntu-latest

unused variable: `session`

Check failure on line 29 in examples/examples/z_get.rs

View workflow job for this annotation

GitHub Actions / Run checks on ubuntu-latest

unused variable: `session`

Check failure on line 29 in examples/examples/z_get.rs

View workflow job for this annotation

GitHub Actions / Run checks on macOS-latest

unused variable: `session`

Check failure on line 29 in examples/examples/z_get.rs

View workflow job for this annotation

GitHub Actions / Run checks on windows-latest

unused variable: `session`

Check failure on line 29 in examples/examples/z_get.rs

View workflow job for this annotation

GitHub Actions / Run checks on windows-latest

unused variable: `session`

Check failure on line 29 in examples/examples/z_get.rs

View workflow job for this annotation

GitHub Actions / Run checks on macOS-latest

unused variable: `session`

println!("Sending Query '{selector}'...");
let replies = match value {
Some(value) => session.get(&selector).with_value(value),
None => session.get(&selector),
}
.target(target)
.timeout(timeout)
.res()
.await
.unwrap();
while let Ok(reply) = replies.recv_async().await {
match reply.sample {
Ok(sample) => println!(
">> Received ('{}': '{}')",
sample.key_expr.as_str(),
sample.value,
),
Err(err) => println!(">> Received (ERROR: '{}')", String::try_from(&err).unwrap()),
}
}
// println!("Sending Query '{selector}'...");
// let replies = match value {
// Some(value) => session.get(&selector).with_value(value),
// None => session.get(&selector),
// }
// .target(target)
// .timeout(timeout)
// .res()
// .await
// .unwrap();
// while let Ok(reply) = replies.recv_async().await {
// match reply.sample {
// Ok(sample) => println!(
// ">> Received ('{}': '{}')",
// sample.key_expr.as_str(),
// sample.value,
// ),
// Err(err) => println!(">> Received (ERROR: '{}')", String::try_from(&err).unwrap()),
// }
// }
}

#[derive(clap::ValueEnum, Clone, Copy, Debug)]
Expand Down
Loading

0 comments on commit 26d2c61

Please sign in to comment.