Skip to content

Commit

Permalink
Pre-polling delays removed, these were originally introduced to slow …
Browse files Browse the repository at this point in the history
…down requests because Imperva(?) was flagging regular use as an attack. That might no longer be the case. (#556)
  • Loading branch information
JohnSharpe authored Aug 21, 2024
1 parent 13bfd8b commit 2d7e7d5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions provider/resource_rediscloud_pro_subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,6 @@ func createDatabase(dbName string, idx *int, modules []*subscriptions.CreateModu

func waitForSubscriptionToBeActive(ctx context.Context, id int, api *apiClient) error {
wait := &retry.StateChangeConf{
Delay: 30 * time.Second,
Pending: []string{subscriptions.SubscriptionStatusPending},
Target: []string{subscriptions.SubscriptionStatusActive},
Timeout: safetyTimeout,
Expand All @@ -918,7 +917,6 @@ func waitForSubscriptionToBeActive(ctx context.Context, id int, api *apiClient)

func waitForSubscriptionToBeDeleted(ctx context.Context, id int, api *apiClient) error {
wait := &retry.StateChangeConf{
Delay: 30 * time.Second,
Pending: []string{subscriptions.SubscriptionStatusDeleting},
Target: []string{"deleted"},
Timeout: safetyTimeout,
Expand Down Expand Up @@ -947,7 +945,6 @@ func waitForSubscriptionToBeDeleted(ctx context.Context, id int, api *apiClient)

func waitForDatabaseToBeActive(ctx context.Context, subId, id int, api *apiClient) error {
wait := &retry.StateChangeConf{
Delay: 30 * time.Second,
Pending: []string{
databases.StatusDraft,
databases.StatusPending,
Expand Down

0 comments on commit 2d7e7d5

Please sign in to comment.