mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
refactor
This commit is contained in:
parent
7cf7e05cbb
commit
8251d1140e
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue