This commit is contained in:
Chris Lu 2021-04-04 18:37:56 -07:00
parent 7cf7e05cbb
commit 8251d1140e

View file

@ -62,7 +62,7 @@ func (fs *FilerServer) uploadReaderToChunks(w http.ResponseWriter, r *http.Reque
for readErr == nil { for readErr == nil {
wg.Add(1) wg.Add(1)
limitedUploadProcessor.Execute(func() { request := func() {
defer wg.Done() defer wg.Done()
var localOffset int64 var localOffset int64
@ -105,7 +105,8 @@ func (fs *FilerServer) uploadReaderToChunks(w http.ResponseWriter, r *http.Reque
chunk: uploadResult.ToPbFileChunk(fileId, localOffset), chunk: uploadResult.ToPbFileChunk(fileId, localOffset),
} }
}) }
limitedUploadProcessor.Execute(request)
} }
go func() { go func() {