Skip to content

Commit

Permalink
fix deprecated function
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed Sep 18, 2023
1 parent 16a2e9f commit bc2474b
Showing 1 changed file with 1 addition and 1 deletion.
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 bc2474b

Please sign in to comment.