From da73fdc95fb0446188c21320e0ba94a71ad428c5 Mon Sep 17 00:00:00 2001 From: Yadunund Date: Fri, 12 Jan 2024 10:26:46 +0800 Subject: [PATCH] Style Signed-off-by: Yadunund --- rmw_zenoh_cpp/src/rmw_zenoh.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rmw_zenoh_cpp/src/rmw_zenoh.cpp b/rmw_zenoh_cpp/src/rmw_zenoh.cpp index 268c7520..38a6c662 100644 --- a/rmw_zenoh_cpp/src/rmw_zenoh.cpp +++ b/rmw_zenoh_cpp/src/rmw_zenoh.cpp @@ -2080,7 +2080,8 @@ static int64_t get_sequence_num_from_attachment(const z_attachment_t * const att return -1; } else if (errno != 0) { // Some other error occurred, which may include overflow or underflow - RMW_SET_ERROR_MSG("An undefined error occurred while getting the sequence number, this may be an overflow"); + RMW_SET_ERROR_MSG( + "An undefined error occurred while getting the sequence number, this may be an overflow"); return -1; } @@ -2505,7 +2506,9 @@ rmw_take_request( // Add this query to the map, so that rmw_send_response can quickly look it up later { std::lock_guard lock(service_data->sequence_to_query_map_mutex); - if (service_data->sequence_to_query_map.find(sequence_number) != service_data->sequence_to_query_map.end()) { + if (service_data->sequence_to_query_map.find(sequence_number) != + service_data->sequence_to_query_map.end()) + { RMW_SET_ERROR_MSG("duplicate sequence number in the map"); return RMW_RET_ERROR; }