Skip to content

Commit

Permalink
Fix crash issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanhaoji2 committed Jul 28, 2024
1 parent 22a0e76 commit c802d77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/in_mem_static_graph_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ class InMemStaticGraphStore : public AbstractGraphStore
throw std::runtime_error("static memory graph only use for searching");
}

virtual size_t resize_graph(const size_t /*new_size*/) override
virtual size_t resize_graph(const size_t new_size) override
{
throw std::runtime_error("static memory graph only use for searching");
// not action taken, the graph is initialized in loading
return new_size;
}

virtual void clear_graph() override
Expand Down

0 comments on commit c802d77

Please sign in to comment.