Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/rolling' into ahcorde/dev/1.0.0-cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ahcorde committed Dec 13, 2024
2 parents 6128468 + dd82e84 commit fbb49a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include <fastcdr/FastBuffer.h>

#include <chrono>
#include <cinttypes>
#include <limits>
#include <memory>
Expand Down Expand Up @@ -224,7 +225,7 @@ bool SubscriptionData::init()
sub_data->add_new_message(
std::make_unique<SubscriptionData::Message>(
sample.get_payload().clone(),
sample.get_timestamp().value().get_time(),
std::chrono::system_clock::now().time_since_epoch().count(),
std::move(attachment_data)),
std::string(sample.get_keyexpr().as_string_view()));
},
Expand Down Expand Up @@ -310,7 +311,7 @@ bool SubscriptionData::init()
sub_data->add_new_message(
std::make_unique<SubscriptionData::Message>(
sample.get_payload().clone(),
sample.get_timestamp().value().get_time(),
std::chrono::system_clock::now().time_since_epoch().count(),
std::move(attachment_data)),
std::string(keystr.as_string_view()));
},
Expand Down

0 comments on commit fbb49a0

Please sign in to comment.