Commit d8f01607 by Li Feifei

改为异步请求

parent e6ae817d
Pipeline #16070 passed with stages
in 38 seconds
...@@ -158,7 +158,7 @@ func (f *ObtainFile) uploadPicture() error { ...@@ -158,7 +158,7 @@ func (f *ObtainFile) uploadPicture() error {
pool := workpool.New(100) pool := workpool.New(100)
for _, file := range reader.File { for _, file := range reader.File {
pool.DoWait(func() error { pool.Do(func() error {
return f.task(file) return f.task(file)
}) })
} }
......
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