Skip to content

Commit

Permalink
remove RedshiftResourceExistsFunc since it is no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
sworisbreathing committed Jan 17, 2024
1 parent d68e7c5 commit 08489a2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions redshift/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,6 @@ func RedshiftResourceRetryOnPQErrors(fn func(*DBConnection, *schema.ResourceData
}
}

func RedshiftResourceExistsFunc(fn func(*DBConnection, *schema.ResourceData) (bool, error)) func(*schema.ResourceData, interface{}) (bool, error) {
return func(d *schema.ResourceData, meta interface{}) (bool, error) {
client := meta.(*Client)

db, err := client.Connect()
if err != nil {
return false, err
}

return fn(db, d)
}
}

func isRetryablePQError(code string) bool {
retryable := map[string]bool{
pqErrorCodeConcurrent: true,
Expand Down

0 comments on commit 08489a2

Please sign in to comment.