diff --git a/ci/valgrind-check/src/queryable_get/bin/z_queryable_get.rs b/ci/valgrind-check/src/queryable_get/bin/z_queryable_get.rs index 3a5a11a98f..676db8f7d0 100644 --- a/ci/valgrind-check/src/queryable_get/bin/z_queryable_get.rs +++ b/ci/valgrind-check/src/queryable_get/bin/z_queryable_get.rs @@ -31,10 +31,11 @@ async fn main() { .declare_queryable(&queryable_key_expr.clone()) .callback(move |query| { println!(">> Handling query '{}'", query.selector()); + let queryable_key_expr = queryable_key_expr.clone(); zenoh_runtime::ZRuntime::Application.block_in_place(async move { query .reply( - queryable_key_expr.clone(), + queryable_key_expr, query.value().unwrap().payload().clone(), ) .res()