Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extension/module/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ runtime::Error Module::load_method(

runtime::Result<MethodMeta> Module::method_meta(
const std::string& method_name) {
ET_CHECK_OK_OR_RETURN_ERROR(load_method(method_name));
return methods_.at(method_name).method->method_meta();
ET_CHECK_OK_OR_RETURN_ERROR(load());
return program_->method_meta(method_name.c_str());
}

runtime::Result<std::vector<runtime::EValue>> Module::execute(
Expand Down
2 changes: 1 addition & 1 deletion extension/module/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class Module {

/**
* Get a method metadata struct by method name.
* Loads the program and method if needed.
* Loads the program if needed.
*
* @param[in] method_name The name of the method to get the metadata for.
*
Expand Down
Loading