From a916b8336174fc65b384a71b8be4f0748d37e46a Mon Sep 17 00:00:00 2001 From: hammadb Date: Sun, 24 Mar 2024 17:24:13 -0700 Subject: [PATCH] [BUG] Fix as_nanos bad merge --- 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;