Skip to content

Commit

Permalink
fix: concurrencies.
Browse files Browse the repository at this point in the history
Signed-off-by: shuangkun.tsk <[email protected]>
  • Loading branch information
shuangkun.tsk committed Nov 24, 2024
1 parent 5097fd7 commit 456771a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func generatePutTasks(keyPrefix, rootPath string) chan uploadTask {
// PutDirectory puts a complete directory into a bucket key prefix, with each file in the directory
// a separate key in the bucket.
func (s *s3client) PutDirectory(bucket, key, path string, maxParallel ...int) error {
parallel := 10 // 默认并发数
parallel := 10 // Default number of concurrencies
if len(maxParallel) > 0 {
parallel = maxParallel[0]
}
Expand Down

0 comments on commit 456771a

Please sign in to comment.