summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-08-25 17:37:20 +0200
committerLibravatar GitHub <noreply@github.com>2024-08-25 15:37:20 +0000
commitdb59ca36b1472c187c234327f6901879cfe25a19 (patch)
treee4f17f8b8e02d3ab7b275022c471b39855c320f7
parent[chore] Tiny tweak to ApprovedByURI (#3234) (diff)
downloadgotosocial-db59ca36b1472c187c234327f6901879cfe25a19.tar.xz
[chore] Remove unused "env" module (#3235)
-rw-r--r--internal/media/ffmpeg/wasm.go13
1 files changed, 2 insertions, 11 deletions
diff --git a/internal/media/ffmpeg/wasm.go b/internal/media/ffmpeg/wasm.go
index ff5506f2a..705b16fc3 100644
--- a/internal/media/ffmpeg/wasm.go
+++ b/internal/media/ffmpeg/wasm.go
@@ -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
}