Skip to content

Commit

Permalink
Set discoverer participant in simulated endpoint's topic (#73)
Browse files Browse the repository at this point in the history
* Set discoverer participant in simulated endpoint's topic

Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>

* Apply suggestion

Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>

---------

Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
  • Loading branch information
juanlofer-eprosima authored Nov 16, 2023
1 parent 621ad13 commit c4f3105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ddspipe_core/src/cpp/testing/random_values.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Endpoint random_endpoint(
endpoint.kind = random_endpoint_kind(seed);
endpoint.topic = random_dds_topic(seed);
endpoint.discoverer_participant_id = random_participant_id(seed);
endpoint.topic.m_topic_discoverer = endpoint.discoverer_participant_id;

return endpoint;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ core::types::Endpoint CommonParticipant::simulate_endpoint(
endpoint.guid = core::types::Guid::new_unique_guid();
endpoint.topic = topic;
endpoint.discoverer_participant_id = discoverer_id;
endpoint.topic.m_topic_discoverer = discoverer_id;

return endpoint;
}
Expand Down

0 comments on commit c4f3105

Please sign in to comment.