diff --git a/pkg/s3/client.go b/pkg/s3/client.go index 6e63e6d..7a1b1ec 100644 --- a/pkg/s3/client.go +++ b/pkg/s3/client.go @@ -171,7 +171,7 @@ func (client *s3Client) removeObjects(bucketName, prefix string) error { // will delete files one by one without file lock func (client *s3Client) removeObjectsOneByOne(bucketName, prefix string) error { parallelism := 16 - objectsCh := make(chan minio.ObjectInfo, 1) + objectsCh := make(chan minio.ObjectInfo, parallelism) guardCh := make(chan int, parallelism) var listErr error var totalObjects int64 = 0