Skip to content

Commit e643504

Browse files
committed
fix loader forwarding
1 parent 618a449 commit e643504

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/svs/orchestrators/dynamic_vamana.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ class DynamicVamana : public manager::IndexManager<DynamicVamanaInterface> {
322322
typename ThreadPoolProto>
323323
static DynamicVamana assemble(
324324
const std::filesystem::path& config_path,
325-
const GraphLoader& graph_loader,
326-
const DataLoader& data_loader,
325+
GraphLoader&& graph_loader,
326+
DataLoader&& data_loader,
327327
const Distance& distance,
328328
ThreadPoolProto threadpool_proto,
329329
bool debug_load_from_static = false
@@ -333,8 +333,8 @@ class DynamicVamana : public manager::IndexManager<DynamicVamanaInterface> {
333333
manager::as_typelist<QueryTypes>(),
334334
index::vamana::auto_dynamic_assemble(
335335
config_path,
336-
graph_loader,
337-
data_loader,
336+
std::forward<GraphLoader>(graph_loader),
337+
std::forward<DataLoader>(data_loader),
338338
distance,
339339
threads::as_threadpool(std::move(threadpool_proto)),
340340
debug_load_from_static

0 commit comments

Comments
 (0)