Skip to content

Commit

Permalink
Build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketkedia committed Nov 11, 2024
1 parent 8ffb26a commit ec3954d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions rust/blockstore/src/types/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ impl BlockfileWriter {
&self,
prefix: &str,
key: K,
) -> Result<Option<V::OwnedReadableValue>, Box<dyn ChromaError>> {
) -> Result<Option<V::PreparedValue>, Box<dyn ChromaError>> {
match self {
BlockfileWriter::MemoryBlockfileWriter(_) => todo!(),
BlockfileWriter::ArrowBlockfileWriter(writer) => {
BlockfileWriter::ArrowUnorderedBlockfileWriter(writer) => {
writer.get_clone::<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 @@ -251,7 +251,7 @@ impl SpannIndexWriter {
let max_head_id = match max_head_id_bf_id {
Some(max_head_id_bf_id) => {
let reader = blockfile_provider
.open::<&str, u32>(max_head_id_bf_id)
.read::<&str, u32>(max_head_id_bf_id)
.await;
match reader {
Ok(reader) => reader.get("", MAX_HEAD_OFFSET_ID).await.map_err(|_| {
Expand Down

0 comments on commit ec3954d

Please sign in to comment.