Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
one more
Browse files Browse the repository at this point in the history
  • Loading branch information
katrogan committed Jul 7, 2020
1 parent 0332978 commit fa02b56
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/async/notifications/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ func GetEmailer(config runtimeInterfaces.NotificationsConfig, scope promutils.Sc
switch config.Type {
case common.AWS:
awsConfig := aws.NewConfig().WithRegion(config.Region).WithMaxRetries(maxRetries)
var awsSession *session.Session
var err error
err = async.Retry(reconnectAttempts, reconnectDelay, func() error {
awsSession, err = session.NewSession(awsConfig)
return err
})

awsSession, err := session.NewSession(awsConfig)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit fa02b56

Please sign in to comment.