From 2f66ffbabef27c61dc76ae35c85536ffe7b9ba33 Mon Sep 17 00:00:00 2001 From: Hubert Gruszecki Date: Wed, 12 Jun 2024 13:13:12 +0200 Subject: [PATCH] Change IggyTimestamp conversion to use microseconds (#993) This commit updates the conversion from IggyTimestamp to u64 to use microseconds instead of seconds. --- Cargo.lock | 4 ++-- sdk/Cargo.toml | 2 +- sdk/src/utils/timestamp.rs | 2 +- server/Cargo.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index caf149914..3e94d353b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2145,7 +2145,7 @@ dependencies = [ [[package]] name = "iggy" -version = "0.4.2" +version = "0.4.3" dependencies = [ "aes-gcm", "anyhow", @@ -4045,7 +4045,7 @@ dependencies = [ [[package]] name = "server" -version = "0.2.23" +version = "0.2.24" dependencies = [ "anyhow", "async-stream", diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index 2c68e1b56..75a593eb6 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -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" diff --git a/sdk/src/utils/timestamp.rs b/sdk/src/utils/timestamp.rs index d3b675ad0..cc92272ac 100644 --- a/sdk/src/utils/timestamp.rs +++ b/sdk/src/utils/timestamp.rs @@ -57,7 +57,7 @@ impl From for IggyTimestamp { impl From for u64 { fn from(timestamp: IggyTimestamp) -> u64 { - timestamp.to_secs() + timestamp.to_micros() } } diff --git a/server/Cargo.toml b/server/Cargo.toml index 87ba7247e..7822e6e8c 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "server" -version = "0.2.23" +version = "0.2.24" edition = "2021" build = "src/build.rs"