Commit 828f2224 by Li Feifei

test

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