remove default max retries config of 8, it will now be used from env

removing the code that wants to guess region from metadata allows us to change that setting, which can now be taken from environment.
This commit is contained in:
Adrien Delorme 2019-01-25 13:51:02 +01:00
parent 964b149df2
commit 4a2773f8fa
1 changed files with 0 additions and 4 deletions

View File

@ -48,10 +48,6 @@ func (c *AccessConfig) Session() (*session.Session, error) {
config.WithCredentials(staticCreds) config.WithCredentials(staticCreds)
} }
// default is 3, and when it was causing failures for users being throttled
// retries are exponentially backed off.
config = config.WithMaxRetries(8)
if c.RawRegion != "" { if c.RawRegion != "" {
config = config.WithRegion(c.RawRegion) config = config.WithRegion(c.RawRegion)
} }