diff options
author | 2024-08-09 10:53:29 +0000 | |
---|---|---|
committer | 2024-08-09 10:53:29 +0000 | |
commit | 4a3ece0c6c22e6a3f376c26d38eb4dbad8ada420 (patch) | |
tree | 843c32817efa4040d13e4b9847381252467a6005 /testrig/config.go | |
parent | [performance] move thumbnail generation to go code where possible (#3183) (diff) | |
download | gotosocial-4a3ece0c6c22e6a3f376c26d38eb4dbad8ada420.tar.xz |
[bugfix] ensure testrig package only compiled-in when debug enabled (#3185)
* ensure testrig package only compiled-in (including init) when debug enabled
* add code comment to testrig init to indicate WebAssembly compilation
Diffstat (limited to 'testrig/config.go')
-rw-r--r-- | testrig/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testrig/config.go b/testrig/config.go index ed98798d6..6a4254d61 100644 --- a/testrig/config.go +++ b/testrig/config.go @@ -19,6 +19,7 @@ package testrig import ( "context" + "fmt" "os" "strconv" "time" @@ -34,11 +35,13 @@ func init() { ctx := context.Background() // Ensure global ffmpeg WASM pool initialized. + fmt.Println("testrig: precompiling ffmpeg WASM") if err := ffmpeg.InitFfmpeg(ctx, 1); err != nil { panic(err) } // Ensure global ffmpeg WASM pool initialized. + fmt.Println("testrig: precompiling ffprobe WASM") if err := ffmpeg.InitFfprobe(ctx, 1); err != nil { panic(err) } |