From 1f9357fc0aecf8a5d639e601f888378a57b44648 Mon Sep 17 00:00:00 2001 From: yuanyuyuan Date: Tue, 31 Dec 2024 19:13:42 +0800 Subject: [PATCH] chore: ament_uncrustify and ament_cpplint --- rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp | 3 ++- rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp b/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp index a17bc07d..44acbd15 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp +++ b/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp @@ -113,7 +113,8 @@ std::shared_ptr PublisherData::make( // Create a Publication Cache if durability is transient_local. if (adapted_qos_profile.durability == RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL) { - adv_pub_opts.cache = zenoh::ext::SessionExt::AdvancedPublisherOptions::CacheOptions::create_default(); + adv_pub_opts.cache = + zenoh::ext::SessionExt::AdvancedPublisherOptions::CacheOptions::create_default(); adv_pub_opts.cache->max_samples = adapted_qos_profile.depth; } diff --git a/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp b/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp index 8bce00d8..0e23d3da 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp +++ b/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp @@ -182,7 +182,8 @@ bool SubscriptionData::init() // as we start supporting more qos settings. if (entity_->topic_info()->qos_.durability == RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL) { adv_sub_opts.query_timeout_ms = std::numeric_limits::max(); - adv_sub_opts.history = zenoh::ext::SessionExt::AdvancedSubscriberOptions::HistoryOptions::create_default(); + adv_sub_opts.history = + zenoh::ext::SessionExt::AdvancedSubscriberOptions::HistoryOptions::create_default(); adv_sub_opts.history->detect_late_publishers = true; adv_sub_opts.history->max_samples = entity_->topic_info()->qos_.depth; adv_sub_opts.recovery = zenoh::ext::SessionExt::AdvancedSubscriberOptions::RecoveryOptions{}; @@ -216,7 +217,7 @@ bool SubscriptionData::init() get_system_time_in_ns(), std::move(attachment_data)), std::string(sample.get_keyexpr().as_string_view())); - }; + }; sub_ = context_impl->session()->ext().declare_advanced_subscriber( sub_ke, on_sample,