Skip to content

Commit

Permalink
Fix valgrind check
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Apr 26, 2024
1 parent fc9e2d3 commit 42bd3e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ci/valgrind-check/src/queryable_get/bin/z_queryable_get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ use zenoh::prelude::r#async::*;
async fn main() {
zenoh_util::init_log_test();

let _z = zenoh_runtime::ZRuntimePoolGuard;

let queryable_key_expr = KeyExpr::try_from("test/valgrind/data").unwrap();
let get_selector = Selector::try_from("test/valgrind/**").unwrap();

println!("Declaring Queryable on '{queryable_key_expr}'...");
let queryable_session = zenoh::open(Config::default()).res().await.unwrap();
let _queryable = queryable_session
.declare_queryable(queryable_key_expr)
.declare_queryable(queryable_key_expr.clone())
.callback(move |query| {
println!(">> Handling query '{}'", query.selector());
let queryable_key_expr = queryable_key_expr.clone();
Expand Down

0 comments on commit 42bd3e4

Please sign in to comment.