From a6bb23b2272d90b9ea11a69814a40d53ffe53f2e Mon Sep 17 00:00:00 2001 From: Sanket Kedia Date: Wed, 13 Nov 2024 14:28:21 -0800 Subject: [PATCH] Fix build error due to rebase --- rust/index/src/spann/types.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rust/index/src/spann/types.rs b/rust/index/src/spann/types.rs index c122eb40b28..1b16e1c73a7 100644 --- a/rust/index/src/spann/types.rs +++ b/rust/index/src/spann/types.rs @@ -276,9 +276,13 @@ impl SpannIndexWriter { .read::<&str, u32>(max_head_id_bf_id) .await; match reader { - Ok(reader) => reader.get("", MAX_HEAD_OFFSET_ID).await.map_err(|_| { - SpannIndexWriterConstructionError::BlockfileReaderConstructionError - })?, + Ok(reader) => reader + .get("", MAX_HEAD_OFFSET_ID) + .await + .map_err(|_| { + SpannIndexWriterConstructionError::BlockfileReaderConstructionError + })? + .unwrap(), Err(_) => 1, } }