Skip to content

Commit 083bee7

Browse files
committed
patch of copy
1 parent 89fe321 commit 083bee7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Qcloud/Cos/Copy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Copy {
99
/**
1010
* const var: part size from 5MB to 5GB, and max parts of 10000 are allowed for each upload.
1111
*/
12-
const MIN_PART_SIZE = 1073741824;
12+
const MIN_PART_SIZE = 5242880;
1313
const MAX_PART_SIZE = 5368709120;
1414
const MAX_PARTS = 10000;
1515

@@ -25,7 +25,7 @@ public function __construct($client, $contentlength, $source, $minPartSize, $opt
2525
$this->options = $options;
2626
$this->size = $contentlength;
2727
$this->partSize = $this->calculatePartSize($minPartSize);
28-
$this->concurrency = isset($options['concurrency']) ? $options['concurrency'] : 5;
28+
$this->concurrency = isset($options['concurrency']) ? $options['concurrency'] : 10;
2929
$this->retry = isset($options['retry']) ? $options['retry'] : 5;
3030
}
3131
public function copy() {

0 commit comments

Comments
 (0)