Skip to content

Commit

Permalink
Set default consolidation for client query
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <[email protected]>
  • Loading branch information
Yadunund committed Jan 18, 2024
1 parent cba604f commit 762668b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/rmw_zenoh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const uint8_t *>(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);
Expand Down

0 comments on commit 762668b

Please sign in to comment.