From e9c0af3ad1eb0582e9517c4f80af922e0e181469 Mon Sep 17 00:00:00 2001 From: jojoliang Date: Wed, 29 Sep 2021 17:41:00 +0800 Subject: [PATCH] update demo --- example/object/get_with_retry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/object/get_with_retry.go b/example/object/get_with_retry.go index cb0138b..48a240c 100644 --- a/example/object/get_with_retry.go +++ b/example/object/get_with_retry.go @@ -51,7 +51,7 @@ func main() { // Get 请求配置重试 c.Conf.RetryOpt.Count = 3 // 错误重试次数,默认重试3次 c.Conf.RetryOpt.Interval = time.Millisecond // 错误重试间隔时间,默认0 - c.Conf.RetryOpt.StatusCode = []int{200} // 默认5xx都会重试,该参数配置其余需要重试的响应码 + c.Conf.RetryOpt.StatusCode = []int{} // 默认5xx都会重试,该参数配置其余需要重试的响应码 name := "exampleobject" _, err := c.Object.Get(context.Background(), name, nil)