Skip to content

Commit

Permalink
[BUG] Fix as_nanos bad merge (chroma-core#1928)
Browse files Browse the repository at this point in the history
## Description of changes

*Summarize the changes made by this PR.*
 - Improvements & Bug fixes
	 - chroma-core#1927 accidentally reverted chroma-core#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
  • Loading branch information
HammadB authored Mar 25, 2024
1 parent 5369630 commit 6b68fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/worker/src/execution/orchestration/hnsw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6b68fd1

Please sign in to comment.