From 6b68fd11950d0ab43cd5470851f31f26018b745e Mon Sep 17 00:00:00 2001 From: Hammad Bashir Date: Sun, 24 Mar 2024 17:24:59 -0700 Subject: [PATCH] [BUG] Fix as_nanos bad merge (#1928) ## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - #1927 accidentally reverted #1918 - New functionality - None ## Test plan *How are these changes tested?* - [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Documentation Changes none --- rust/worker/src/execution/orchestration/hnsw.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/worker/src/execution/orchestration/hnsw.rs b/rust/worker/src/execution/orchestration/hnsw.rs index 97c0f3512d4..699bfde4b3f 100644 --- a/rust/worker/src/execution/orchestration/hnsw.rs +++ b/rust/worker/src/execution/orchestration/hnsw.rs @@ -123,7 +123,7 @@ impl HnswQueryOrchestrator { let end_timestamp = SystemTime::now().duration_since(UNIX_EPOCH); let end_timestamp = match end_timestamp { // TODO: change protobuf definition to use u64 instead of i64 - Ok(end_timestamp) => end_timestamp.as_secs() as i64, + Ok(end_timestamp) => end_timestamp.as_nanos() as i64, Err(e) => { // Log an error and reply + return return;