From 2997a213c3f2309653e4798fcdc66b07f2933389 Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 17 Nov 2025 16:31:05 -0800 Subject: [PATCH] look breaking --- weed/operation/upload_chunked.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/operation/upload_chunked.go b/weed/operation/upload_chunked.go index ad62a0874..034f558ce 100644 --- a/weed/operation/upload_chunked.go +++ b/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: }