From 58da1f50d092733b196ead39209d2dc0231f3fc7 Mon Sep 17 00:00:00 2001 From: boranx Date: Thu, 13 Aug 2020 14:55:22 +0200 Subject: [PATCH] fix(verify-permissions): revert code refactors --- go.mod | 3 --- pkg/aws/client.go | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 46e9937665..8f98db09e7 100644 --- a/go.mod +++ b/go.mod @@ -5,12 +5,9 @@ go 1.13 require ( github.com/AlecAivazis/survey/v2 v2.1.0 github.com/aws/aws-sdk-go v1.29.17 - github.com/beorn7/perks v1.0.1 // indirect github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b github.com/golang/mock v1.4.3 - github.com/json-iterator/go v1.1.10 // indirect - github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect github.com/mattn/go-colorable v0.1.7 // indirect github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect github.com/mitchellh/go-homedir v1.1.0 diff --git a/pkg/aws/client.go b/pkg/aws/client.go index 223b7b4f5e..37914f8252 100644 --- a/pkg/aws/client.go +++ b/pkg/aws/client.go @@ -140,6 +140,7 @@ func (b *ClientBuilder) Build() (Client, error) { MaxRetries: aws.Int(25), // Set MinThrottleDelay to 1 second Retryer: client.DefaultRetryer{ + NumMaxRetries: 5, MinThrottleDelay: 1 * time.Second, }, Logger: logger,