Commit 4328603e by Li Feifei

debug

parent d2daaaa7
Pipeline #17122 passed with stages
in 1 minute 4 seconds
......@@ -11,6 +11,7 @@ import (
"os"
"path"
"regexp"
"runtime/debug"
"strings"
"ppt_server/app/model"
......@@ -129,6 +130,9 @@ func (f *ObtainFile) taskJob(file *zip.File) ([]interface{}, error) {
}
func (f *ObtainFile) task(file *zip.File) (err error) {
defer func() {
debug.FreeOSMemory()
}()
for i := 0; i < 3; i++ {
if imageInfo, err := f.taskJob(file); err == nil {
f.packed.ImageInfos = append(f.packed.ImageInfos, imageInfo)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment