From 762668bcd7d6ec5a717625260d15856f44286041 Mon Sep 17 00:00:00 2001 From: Yadunund Date: Fri, 19 Jan 2024 00:45:00 +0800 Subject: [PATCH] Set default consolidation for client query Signed-off-by: Yadunund --- rmw_zenoh_cpp/src/rmw_zenoh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw_zenoh_cpp/src/rmw_zenoh.cpp b/rmw_zenoh_cpp/src/rmw_zenoh.cpp index f85d0aac..2105bef0 100644 --- a/rmw_zenoh_cpp/src/rmw_zenoh.cpp +++ b/rmw_zenoh_cpp/src/rmw_zenoh.cpp @@ -2207,7 +2207,7 @@ rmw_send_request( opts.target = Z_QUERY_TARGET_ALL_COMPLETE; // Latest consolidation guarantees unicity of replies for the same key expression. It optimizes bandwidth. // Default is None which imples replies may come in any order and any number. - opts.consolidation = z_query_consolidation_latest(); + opts.consolidation = z_query_consolidation_default(); opts.value.payload = z_bytes_t{data_length, reinterpret_cast(request_bytes)}; opts.value.encoding = z_encoding(Z_ENCODING_PREFIX_EMPTY, NULL); client_data->zn_closure_reply = z_closure(client_data_handler, nullptr, client_data);