Skip to content

Commit

Permalink
feat(mnq): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jremy42 committed Dec 10, 2024
1 parent 90cdde4 commit 0d3e400
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions internal/transport/retry_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,9 @@ import (
"errors"
"time"

"github.com/hashicorp/aws-sdk-go-base/tfawserr"
tfawserrV2 "github.com/hashicorp/aws-sdk-go-base/v2/tfawserr"
"github.com/hashicorp/aws-sdk-go-base/v2/tfawserr"
)

func RetryWhenAWSErrCodeEqualsV2[T any](ctx context.Context, codes []string, config *RetryWhenConfig[T]) (T, error) {
return retryWhen(ctx, config, func(err error) bool {
return tfawserrV2.ErrCodeEquals(err, codes...)
})
}

// RetryWhenAWSErrCodeEquals retries a function when it returns a specific AWS error
func RetryWhenAWSErrCodeEquals[T any](ctx context.Context, codes []string, config *RetryWhenConfig[T]) (T, error) { //nolint: ireturn
return retryWhen(ctx, config, func(err error) bool {
Expand Down

0 comments on commit 0d3e400

Please sign in to comment.