@@ -89,10 +89,9 @@ IBigSegmentStore::GetMembershipResult DynamoDBBigSegmentStore::GetMembership(
8989 it != item.end ()) {
9090 if (it->second .GetType () !=
9191 Aws::DynamoDB::Model::ValueType::STRING_SET ) {
92- return tl::make_unexpected (
93- std::string (" DynamoDB Big Segments '" ) +
94- kBigSegmentsIncludedAttribute +
95- " ' is not of type STRING_SET" );
92+ return tl::make_unexpected (std::string (" DynamoDB Big Segments '" ) +
93+ kBigSegmentsIncludedAttribute +
94+ " ' is not of type STRING_SET" );
9695 }
9796 for (auto const & ref : it->second .GetSS ()) {
9897 included.emplace_back (ref);
@@ -102,10 +101,9 @@ IBigSegmentStore::GetMembershipResult DynamoDBBigSegmentStore::GetMembership(
102101 it != item.end ()) {
103102 if (it->second .GetType () !=
104103 Aws::DynamoDB::Model::ValueType::STRING_SET ) {
105- return tl::make_unexpected (
106- std::string (" DynamoDB Big Segments '" ) +
107- kBigSegmentsExcludedAttribute +
108- " ' is not of type STRING_SET" );
104+ return tl::make_unexpected (std::string (" DynamoDB Big Segments '" ) +
105+ kBigSegmentsExcludedAttribute +
106+ " ' is not of type STRING_SET" );
109107 }
110108 for (auto const & ref : it->second .GetSS ()) {
111109 excluded.emplace_back (ref);
@@ -157,7 +155,9 @@ IBigSegmentStore::GetMetadataResult DynamoDBBigSegmentStore::GetMetadata()
157155 " DynamoDB Big Segments 'synchronizedOn' is not a valid integer" );
158156 }
159157
160- return StoreMetadata{std::chrono::milliseconds{parsed}};
158+ // The stored value is a Unix-epoch millisecond count: system_clock's epoch.
159+ return StoreMetadata{std::chrono::system_clock::time_point{
160+ std::chrono::milliseconds{parsed}}};
161161}
162162
163163} // namespace launchdarkly::server_side::integrations
0 commit comments