Browse Source

fmt

pull/7481/head
chrislu 1 month ago
parent
commit
4be1202c82
  1. 2
      weed/s3api/s3api_object_handlers.go

2
weed/s3api/s3api_object_handlers.go

@ -2546,7 +2546,7 @@ func (s3a *S3ApiServer) createEncryptedChunkReader(chunk *filer_pb.FileChunk) (i
// Create HTTP request with context for timeout control
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel()
req, err := http.NewRequestWithContext(ctx, "GET", srcUrl, nil)
if err != nil {
return nil, fmt.Errorf("create HTTP request for chunk: %v", err)

Loading…
Cancel
Save