From 358716cfb26f5ee76f09082bf835d7e144744c70 Mon Sep 17 00:00:00 2001 From: ChenYing Kuo Date: Fri, 22 Nov 2024 18:11:17 +0800 Subject: [PATCH] Enable CongestionControl::Block if QoS is reliable. Signed-off-by: ChenYing Kuo --- rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp b/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp index 6f2a9284..0ffdd86e 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp +++ b/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp @@ -147,10 +147,7 @@ std::shared_ptr PublisherData::make( if (adapted_qos_profile.reliability == RMW_QOS_POLICY_RELIABILITY_RELIABLE) { opts.reliability = Z_RELIABILITY_RELIABLE; - - if (adapted_qos_profile.history == RMW_QOS_POLICY_HISTORY_KEEP_ALL) { - opts.congestion_control = Z_CONGESTION_CONTROL_BLOCK; - } + opts.congestion_control = Z_CONGESTION_CONTROL_BLOCK; } z_owned_publisher_t pub; // TODO(clalancette): What happens if the key name is a valid but empty string?