We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6372b2e commit e9c0af3Copy full SHA for e9c0af3
example/object/get_with_retry.go
@@ -51,7 +51,7 @@ func main() {
51
// Get 请求配置重试
52
c.Conf.RetryOpt.Count = 3 // 错误重试次数,默认重试3次
53
c.Conf.RetryOpt.Interval = time.Millisecond // 错误重试间隔时间,默认0
54
- c.Conf.RetryOpt.StatusCode = []int{200} // 默认5xx都会重试,该参数配置其余需要重试的响应码
+ c.Conf.RetryOpt.StatusCode = []int{} // 默认5xx都会重试,该参数配置其余需要重试的响应码
55
56
name := "exampleobject"
57
_, err := c.Object.Get(context.Background(), name, nil)
0 commit comments