Skip to content

Commit

Permalink
set retries when creating session
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Fuentes committed Aug 2, 2018
1 parent 10749f5 commit 67ef9eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion store/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ func getSession(numRetries int) (*session.Session, *string) {
retSession := session.Must(session.NewSessionWithOptions(
session.Options{
Config: aws.Config{
Region: region,
Region: region,
MaxRetries: aws.Int(numRetries),
},
SharedConfigState: session.SharedConfigEnable,
},
Expand Down

0 comments on commit 67ef9eb

Please sign in to comment.