Skip to content

Commit

Permalink
Fix parsing received_timestamp (#939)
Browse files Browse the repository at this point in the history
* Fix parsing received_timestamp

* fix parsing received_timestamp from proto value

* fix parsing receive_timestamp for VerifiedSubscriberVerifiedMappingEventIngestReports

---------

Co-authored-by: Michael Jeffrey <[email protected]>
  • Loading branch information
bbalser and michaeldjeffrey authored Feb 6, 2025
1 parent f2130dd commit 21e5dae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ impl MsgDecode for SubscriberVerifiedMappingEventIngestReport {

impl MsgTimestamp<Result<DateTime<Utc>>> for SubscriberVerifiedMappingEventIngestReportV1 {
fn timestamp(&self) -> Result<DateTime<Utc>> {
self.received_timestamp.to_timestamp()
self.received_timestamp.to_timestamp_millis()
}
}

impl MsgTimestamp<u64> for SubscriberVerifiedMappingEventIngestReport {
fn timestamp(&self) -> u64 {
self.received_timestamp.encode_timestamp()
self.received_timestamp.encode_timestamp_millis()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ impl MsgDecode for VerifiedSubscriberVerifiedMappingEventIngestReport {

impl MsgTimestamp<Result<DateTime<Utc>>> for VerifiedSubscriberVerifiedMappingEventIngestReportV1 {
fn timestamp(&self) -> Result<DateTime<Utc>> {
self.timestamp.to_timestamp()
self.timestamp.to_timestamp_millis()
}
}

impl MsgTimestamp<u64> for VerifiedSubscriberVerifiedMappingEventIngestReport {
fn timestamp(&self) -> u64 {
self.timestamp.encode_timestamp()
self.timestamp.encode_timestamp_millis()
}
}

Expand Down

0 comments on commit 21e5dae

Please sign in to comment.