mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 16:53:14 +08:00
look breaking
This commit is contained in:
@@ -61,6 +61,7 @@ func UploadReaderInChunks(ctx context.Context, reader io.Reader, opt *ChunkedUpl
|
||||
const bytesBufferCounter = 4
|
||||
bytesBufferLimitChan := make(chan struct{}, bytesBufferCounter)
|
||||
|
||||
uploadLoop:
|
||||
for {
|
||||
// Throttle buffer usage
|
||||
bytesBufferLimitChan <- struct{}{}
|
||||
@@ -83,7 +84,7 @@ func UploadReaderInChunks(ctx context.Context, reader io.Reader, opt *ChunkedUpl
|
||||
uploadErr = ctx.Err()
|
||||
}
|
||||
uploadErrLock.Unlock()
|
||||
break
|
||||
break uploadLoop
|
||||
default:
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user