Skip to content

Commit be5d9a6

Browse files
committed
set vector index core upon coordinator init
1 parent 664cba8 commit be5d9a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/server/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::sync::Arc;
99

1010
use crate::apps::hnsw::coordinator::HNSWIndexService;
1111
use crate::apps::hnsw::partition::service::HNSW_PARTITION_SERVICE_ID;
12-
use crate::apps::hnsw::HNSWPartitionService;
12+
use crate::apps::hnsw::{HNSWPartitionService, VectorIndexer};
1313
use crate::graph::GraphEngine;
1414
use crate::job::logger::JobLogger;
1515

@@ -107,6 +107,7 @@ impl MorpheusServer {
107107
.await?;
108108
let service_ref = Arc::new(service);
109109
self.neb_server.rpc.register_service(&service_ref).await;
110+
VectorIndexer::new_and_set_core(&self.neb_server).await;
110111
Ok(service_ref)
111112
}
112113
}

0 commit comments

Comments
 (0)