Skip to content

Commit

Permalink
fix: 去掉重试
Browse files Browse the repository at this point in the history
  • Loading branch information
zenghur committed Jun 26, 2019
1 parent 3014194 commit 127b11b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions diamond.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,7 @@ func New(addr, tenant, accessKey, secretKey string) (*Diamond, error) {
secretKey: secretKey,
}
c, err := cast.New(
cast.WithRetry(2),
cast.WithHTTPClientTimeout(60*time.Second),
cast.WithExponentialBackoffDecorrelatedJitterStrategy(
time.Millisecond*200,
time.Millisecond*500,
),
cast.WithLogLevel(logrus.WarnLevel),
)
if err != nil {
Expand Down

0 comments on commit 127b11b

Please sign in to comment.