Skip to content

Commit

Permalink
Rename convert to zid_to_str
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <yadunund@openrobotics.org>
  • Loading branch information
Yadunund committed Jan 2, 2024
1 parent e9bc3f5 commit 6d3acd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rmw_zenoh_cpp/src/detail/liveliness_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static const std::unordered_map<std::string, EntityType> str_to_entity = {
{CLI_STR, EntityType::Client}
};

std::string convert(z_id_t id)
std::string zid_to_str(z_id_t id)
{
std::stringstream ss;
ss << std::hex;
Expand Down Expand Up @@ -180,7 +180,7 @@ std::optional<Entity> Entity::make(
return std::nullopt;
}

Entity entity{convert(id), std::move(type), std::move(node_info), std::move(topic_info)};
Entity entity{zid_to_str(id), std::move(type), std::move(node_info), std::move(topic_info)};
return entity;
}

Expand Down

0 comments on commit 6d3acd3

Please sign in to comment.