Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
storage: increase the concurrency for deletions (#82)
Browse files Browse the repository at this point in the history
Signed-off-by: huanghaoyuanhhy <[email protected]>
  • Loading branch information
huanghaoyuanhhy authored Mar 7, 2024
1 parent 658b5fa commit ac66d91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion storage/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (a *AzureClient) GetObject(ctx context.Context, i GetObjectInput) (*Object,
}

func (a *AzureClient) DeleteObjects(ctx context.Context, i DeleteObjectsInput) error {
wp, err := NewWorkerPool(ctx, 10, 20, 3)
wp, err := NewWorkerPool(ctx, 500, 2000, 5)
if err != nil {
return fmt.Errorf("storage: azure new worker pool %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion storage/minio.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (m *MinioClient) GetObject(ctx context.Context, i GetObjectInput) (*Object,
}

func (m *MinioClient) DeleteObjects(ctx context.Context, i DeleteObjectsInput) error {
wp, err := NewWorkerPool(ctx, 10, 20, 3)
wp, err := NewWorkerPool(ctx, 500, 2000, 5)
if err != nil {
return fmt.Errorf("storage: %s delete prefix new worker pool %w", m.provider, err)
}
Expand Down

0 comments on commit ac66d91

Please sign in to comment.