Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketkedia committed Dec 4, 2024
1 parent 1a75962 commit 4b2b9cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rust/blockstore/src/types/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl BlockfileWriter {
}
}

pub async fn get_clone<
pub async fn get_owned<
K: Key + Into<KeyWrapper> + ArrowWriteableKey,
V: Value + Writeable + ArrowWriteableValue,
>(
Expand All @@ -91,7 +91,7 @@ impl BlockfileWriter {
match self {
BlockfileWriter::MemoryBlockfileWriter(_) => todo!(),
BlockfileWriter::ArrowUnorderedBlockfileWriter(writer) => {
writer.get_clone::<K, V>(prefix, key).await
writer.get_owned::<K, V>(prefix, key).await
}
BlockfileWriter::ArrowOrderedBlockfileWriter(_) => todo!(),
}
Expand Down
2 changes: 1 addition & 1 deletion rust/index/src/spann/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ impl SpannIndexWriter {
// TODO(Sanket): Check if head is deleted, can happen if another concurrent thread
// deletes it.
let current_pl = write_guard
.get_clone::<u32, &SpannPostingList<'_>>("", head_id)
.get_owned::<u32, &SpannPostingList<'_>>("", head_id)
.await
.map_err(|_| SpannIndexWriterConstructionError::PostingListSearchError)?
.ok_or(SpannIndexWriterConstructionError::PostingListSearchError)?;
Expand Down
2 changes: 1 addition & 1 deletion rust/worker/src/segment/spann_segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ mod test {
// Test PL.
let read_guard = spann_writer.index.posting_list_writer.lock().await;
let res = read_guard
.get_clone::<u32, &SpannPostingList<'_>>("", 1)
.get_owned::<u32, &SpannPostingList<'_>>("", 1)
.await
.expect("Expected posting list to be present")
.expect("Expected posting list to be present");
Expand Down

0 comments on commit 4b2b9cc

Please sign in to comment.