Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Oleshko <[email protected]>
  • Loading branch information
dranikpg committed Oct 20, 2023
1 parent 34ce82e commit 15c8638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/search/indices.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ struct HnswlibAdapter {

void Add(float* data, DocId id) {
if (world_.cur_element_count + 1 >= world_.max_elements_)
world_.resizeIndex(max(world_.cur_element_count * 2, world_.cur_element_count + 5));
world_.resizeIndex(world_.cur_element_count * 2);
world_.addPoint(data, id);
}

Expand Down

0 comments on commit 15c8638

Please sign in to comment.