Browse Source

look breaking

pull/7481/head
chrislu 3 weeks ago
parent
commit
2997a213c3
  1. 3
      weed/operation/upload_chunked.go

3
weed/operation/upload_chunked.go

@ -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:
}

Loading…
Cancel
Save