Commit 828f2224 by Li Feifei

test

parent 7e67b0b0
......@@ -25,7 +25,6 @@ import (
"path"
"ppt_server/models"
"regexp"
"runtime/debug"
"strconv"
"strings"
"sync"
......@@ -48,6 +47,9 @@ func init() {
once.Do(func() {
log.SetFlags(log.Lshortfile | log.LstdFlags)
syncPool = pool.New(10)
syncPool.SetFactory(func() interface{} {
return &bytes.Buffer{}
})
})
}
......@@ -236,9 +238,6 @@ func Down(v *models.XyuSmallTempFiles) {
return
}
Pool := workpool.New(10)
syncPool.SetFactory(func() interface{} {
return &bytes.Buffer{}
})
for _, file := range reader.File {
Pool.DoWait(func() error {
log.Printf("file = %s \n", file.Name)
......
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