Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Fix bugs use async index (#487)
Browse files Browse the repository at this point in the history
* Fix bugs when use AsyncIndex

Signed-off-by: lixinguo <[email protected]>

* Fix bugs when use AsyncIndex

Signed-off-by: lixinguo <[email protected]>

* Fix bugs when use AsyncIndex

Signed-off-by: lixinguo <[email protected]>

* Fix bugs when use AsyncIndex

Signed-off-by: lixinguo <[email protected]>

Signed-off-by: lixinguo <[email protected]>
Co-authored-by: lixinguo <[email protected]>
  • Loading branch information
smellthemoon and lixinguo authored Sep 27, 2022
1 parent 06d139b commit 67e56c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unittest/AsyncIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ class AsyncIndex : public VecIndex {
KNOWHERE_THROW_FORMAT("Invalid index type %s", std::string(type).c_str());
}
}
bool
Prepare(const Config& config) {
return index_->Prepare(config);
}

#endif

std::vector<std::future<DatasetPtr>>&
Expand Down

0 comments on commit 67e56c1

Please sign in to comment.