mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-21 16:55:38 +03: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.
|
||||
rt := wazero.NewRuntimeWithConfig(ctx, cfg)
|
||||
|
||||
// Prepare default "env" host module.
|
||||
env := rt.NewHostModuleBuilder("env")
|
||||
|
||||
// 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)
|
||||
// Instantiate wasi snapshot preview features into runtime.
|
||||
_, err := wasi_snapshot_preview1.Instantiate(ctx, rt)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue