Skip to content

Commit

Permalink
doc instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Oct 2, 2024
1 parent d09ddbf commit 2fc5bf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion private/pkg/wasm/compiled_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ func (p *compiledModule) Run(ctx context.Context, env pluginrpc.Env) error {
// behavior of os.Exec. See wazero.ModuleConfig.WithArgs.
WithArgs(append([]string{p.moduleName}, env.Args...)...)

// Instantiate the guest wasm module into the same runtime.
// Instantiate the Wasm module into the runtime. This effectively runs
// the Wasm module. Only the effect of instantiating the module is used,
// the module is closed immediately after running to free up resources.
// See: https://github.com/tetratelabs/wazero/issues/985
wazeroModule, err := p.runtime.InstantiateModule(
ctx,
Expand Down

0 comments on commit 2fc5bf6

Please sign in to comment.