mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:40:01 +00:00
[chore] Remove unused "env" module (#3235)
This commit is contained in:
parent
2bd31ab710
commit
db59ca36b1
1 changed files with 2 additions and 11 deletions
|
@ -180,17 +180,8 @@ func initRuntime(ctx context.Context) error {
|
||||||
// Instantiate runtime with prepared config.
|
// Instantiate runtime with prepared config.
|
||||||
rt := wazero.NewRuntimeWithConfig(ctx, cfg)
|
rt := wazero.NewRuntimeWithConfig(ctx, cfg)
|
||||||
|
|
||||||
// Prepare default "env" host module.
|
// Instantiate wasi snapshot preview features into runtime.
|
||||||
env := rt.NewHostModuleBuilder("env")
|
_, err := wasi_snapshot_preview1.Instantiate(ctx, rt)
|
||||||
|
|
||||||
// Instantiate host "env" module.
|
|
||||||
_, err := env.Instantiate(ctx)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Instantiate wasi snapshot preview features in runtime.
|
|
||||||
_, err = wasi_snapshot_preview1.Instantiate(ctx, rt)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue