diff --git a/rust/worker/src/index/hnsw_provider.rs b/rust/worker/src/index/hnsw_provider.rs index 3ece22fada8..418f3a71d41 100644 --- a/rust/worker/src/index/hnsw_provider.rs +++ b/rust/worker/src/index/hnsw_provider.rs @@ -109,7 +109,7 @@ impl HnswIndexProvider { } }; - match HnswIndex::load(storage_path_str, &index_config, *source_id) { + match HnswIndex::load(storage_path_str, &index_config, new_id) { Ok(index) => { let index = Arc::new(RwLock::new(index)); let mut cache = self.cache.write();