Skip to content

Commit

Permalink
Fix golangci-lint 'gomnd'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jan 29, 2024
1 parent f51abca commit bf6a84e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions internal/service/codeartifact/consts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package codeartifact

import (
"time"
)

const (
propagationTimeout = 2 * time.Minute
)
2 changes: 1 addition & 1 deletion internal/service/codeartifact/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func resourceDomainCreate(ctx context.Context, d *schema.ResourceData, meta inte
input.EncryptionKey = aws.String(v.(string))
}

outputRaw, err := tfresource.RetryWhenIsAErrorMessageContains[*types.ValidationException](ctx, 2*time.Minute, func() (any, error) {
outputRaw, err := tfresource.RetryWhenIsAErrorMessageContains[*types.ValidationException](ctx, propagationTimeout, func() (any, error) {
return conn.CreateDomain(ctx, input)
}, "KMS key not found")

Expand Down

0 comments on commit bf6a84e

Please sign in to comment.