Skip to content

Commit

Permalink
object/bos: disable retry in bos (#5644)
Browse files Browse the repository at this point in the history
Co-authored-by: Davies Liu <[email protected]>
  • Loading branch information
zhijian-pro and davies authored Feb 11, 2025
1 parent bc06ce4 commit c4e71aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/object/bos.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ func newBOS(endpoint, accessKey, secretKey, token string) (ObjectStorage, error)
if err != nil {
return nil, err
}
bosClient.Config.Retry = bce.NewNoRetryPolicy()
bosClient.Config.UserAgent = UserAgent
return &bosclient{bucket: bucketName, c: bosClient}, nil
}

Expand Down

0 comments on commit c4e71aa

Please sign in to comment.