Skip to content

Commit

Permalink
Rename method.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Sep 6, 2023
1 parent d9c193d commit 6f09bf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/core/src/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl ProtoEnvironment {
})
}

pub fn create_plugin_loader(&self) -> &PluginLoader {
pub fn get_plugin_loader(&self) -> &PluginLoader {
self.loader.get_or_init(|| {
let mut loader = PluginLoader::new(&self.plugins_dir, &self.temp_dir);
loader.set_seed(env!("CARGO_PKG_VERSION"));
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/tool_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub async fn load_tool_from_locator(
let proto = proto.as_ref();
let locator = locator.as_ref();

let plugin_loader = proto.create_plugin_loader();
let plugin_loader = proto.get_plugin_loader();
let plugin_path = plugin_loader.load_plugin(&id, locator).await?;

// If a TOML plugin, we need to load the WASM plugin for it,
Expand Down

0 comments on commit 6f09bf7

Please sign in to comment.