diff options
author | 2024-07-13 16:23:25 +0200 | |
---|---|---|
committer | 2024-07-13 16:23:25 +0200 | |
commit | e2ed6ef0245aef543891473ce163c513bd08c43a (patch) | |
tree | 656e91835b410871d038e27b5ef02994ae29d9bb /vendor/codeberg.org/gruf/go-ffmpreg/internal/wasm.go | |
parent | [chore/frontend] Tweak threading a bit, inform about hidden replies (#3097) (diff) | |
download | gotosocial-e2ed6ef0245aef543891473ce163c513bd08c43a.tar.xz |
[chore] Go mod tidy / vendor (#3100)
Diffstat (limited to 'vendor/codeberg.org/gruf/go-ffmpreg/internal/wasm.go')
-rw-r--r-- | vendor/codeberg.org/gruf/go-ffmpreg/internal/wasm.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/vendor/codeberg.org/gruf/go-ffmpreg/internal/wasm.go b/vendor/codeberg.org/gruf/go-ffmpreg/internal/wasm.go deleted file mode 100644 index 94fdfbdde..000000000 --- a/vendor/codeberg.org/gruf/go-ffmpreg/internal/wasm.go +++ /dev/null @@ -1,25 +0,0 @@ -package internal - -import ( - "os" - - "github.com/tetratelabs/wazero" -) - -func init() { - var err error - - if dir := os.Getenv("WAZERO_COMPILATION_CACHE"); dir != "" { - // Use on-filesystem compilation cache given by env. - Cache, err = wazero.NewCompilationCacheWithDir(dir) - if err != nil { - panic(err) - } - } else { - // Use in-memory compilation cache. - Cache = wazero.NewCompilationCache() - } -} - -// Shared WASM compilation cache. -var Cache wazero.CompilationCache |