Skip to content

Commit

Permalink
chore(deps): Bump chrono from 0.4.30 to 0.4.31 (#12359)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Runji Wang <wangrunji0408@163.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Runji Wang <wangrunji0408@163.com>
Co-authored-by: TennyZhuang <zty0826@gmail.com>
  • Loading branch information
3 people authored Sep 18, 2023
1 parent cbdc1ac commit c82fc9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/common/src/types/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ impl Timestamp {
}

pub fn get_timestamp_nanos(&self) -> i64 {
self.0.timestamp_nanos()
self.0.timestamp_nanos_opt().unwrap()
}

pub fn with_micros(timestamp_micros: i64) -> Result<Self> {
Expand Down
2 changes: 1 addition & 1 deletion src/connector/src/source/google_pubsub/source/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl From<TaggedReceivedMessage> for SourceMessage {
_ => Some(payload),
}
},
offset: timestamp.timestamp_nanos().to_string(),
offset: timestamp.timestamp_nanos_opt().unwrap().to_string(),
split_id,
meta: SourceMeta::GooglePubsub(GooglePubsubMeta {
timestamp: Some(timestamp.timestamp_millis()),
Expand Down

0 comments on commit c82fc9c

Please sign in to comment.