Skip to content

Commit

Permalink
Fix docstring
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <[email protected]>
  • Loading branch information
Yadunund committed Oct 9, 2024
1 parent b9508db commit 7d55c76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions rmw_zenoh_cpp/src/detail/rmw_node_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ ServiceDataPtr NodeData::get_service_data(const rmw_service_t * const service)
}

///=============================================================================
void NodeData::delete_service_data(const rmw_service_t * const subscription)
void NodeData::delete_service_data(const rmw_service_t * const service)
{
std::lock_guard<std::mutex> lock_guard(mutex_);
services_.erase(subscription);
services_.erase(service);
}

///=============================================================================
Expand Down
12 changes: 6 additions & 6 deletions rmw_zenoh_cpp/src/detail/rmw_node_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class NodeData final
// Get the id of this node.
std::size_t id() const;

// Create a new PublisherData for a publisher in this node.
// Create a new PublisherData for a given rmw_publisher_t.
bool create_pub_data(
const rmw_publisher_t * const publisher,
z_session_t session,
Expand All @@ -66,7 +66,7 @@ class NodeData final
// Delete the PublisherData for a given rmw_publisher_t if present.
void delete_pub_data(const rmw_publisher_t * const publisher);

// Create a new SubscriptionData for a publisher in this node.
// Create a new SubscriptionData for a given rmw_subscription_t.
bool create_sub_data(
const rmw_subscription_t * const subscription,
z_session_t session,
Expand All @@ -82,7 +82,7 @@ class NodeData final
// Delete the SubscriptionData for a given rmw_subscription_t if present.
void delete_sub_data(const rmw_subscription_t * const subscription);

// Create a new ServiceData for a publisher in this node.
// Create a new ServiceData for a given rmw_service_t.
bool create_service_data(
const rmw_service_t * const service,
z_session_t session,
Expand All @@ -91,11 +91,11 @@ class NodeData final
const rosidl_service_type_support_t * type_support,
const rmw_qos_profile_t * qos_profile);

// Retrieve the ServiceData for a given rmw_subscription_t if present.
// Retrieve the ServiceData for a given rmw_service_t if present.
ServiceDataPtr get_service_data(const rmw_service_t * const service);

// Delete the ServiceData for a given rmw_subscription_t if present.
void delete_service_data(const rmw_service_t * const subscription);
// Delete the ServiceData for a given rmw_service_t if present.
void delete_service_data(const rmw_service_t * const service);

// Shutdown this NodeData.
rmw_ret_t shutdown();
Expand Down

0 comments on commit 7d55c76

Please sign in to comment.