Skip to content

Commit

Permalink
Change IggyTimestamp conversion to use microseconds (#993)
Browse files Browse the repository at this point in the history
This commit updates the conversion from IggyTimestamp to u64 to use microseconds instead of seconds.
  • Loading branch information
hubcio authored Jun 12, 2024
1 parent 59e380d commit 2f66ffb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 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 sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iggy"
version = "0.4.2"
version = "0.4.3"
description = "Iggy is the persistent message streaming platform written in Rust, supporting QUIC, TCP and HTTP transport protocols, capable of processing millions of messages per second."
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/utils/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl From<u64> for IggyTimestamp {

impl From<IggyTimestamp> for u64 {
fn from(timestamp: IggyTimestamp) -> u64 {
timestamp.to_secs()
timestamp.to_micros()
}
}

Expand Down
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "server"
version = "0.2.23"
version = "0.2.24"
edition = "2021"
build = "src/build.rs"

Expand Down

0 comments on commit 2f66ffb

Please sign in to comment.