Skip to content

Commit 55015dd

Browse files
authored
fix: update cdn handler timeouts
1 parent 4cd3442 commit 55015dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/cdn/wait/wait.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func CreateDistributionPoolWaitHandler(ctx context.Context, api APIClientInterfa
5454
}
5555
return false, nil, nil
5656
})
57-
handler.SetTimeout(1 * time.Minute)
57+
handler.SetTimeout(10 * time.Minute)
5858
return handler
5959
}
6060

@@ -109,7 +109,7 @@ func DeleteDistributionWaitHandler(ctx context.Context, api APIClientInterface,
109109

110110
return false, nil, err
111111
})
112-
handler.SetTimeout(30 * time.Second)
112+
handler.SetTimeout(10 * time.Minute)
113113
return handler
114114
}
115115

@@ -136,7 +136,7 @@ func CreateCDNCustomDomainWaitHandler(ctx context.Context, a APIClientInterface,
136136
return true, nil, fmt.Errorf("CDNCustomDomainWaitHandler: unexpected status %s", *resp.CustomDomain.Status)
137137
}
138138
})
139-
handler.SetTimeout(1 * time.Minute)
139+
handler.SetTimeout(10 * time.Minute)
140140
return handler
141141
}
142142

@@ -156,6 +156,6 @@ func DeleteCDNCustomDomainWaitHandler(ctx context.Context, a APIClientInterface,
156156
}
157157
return false, nil, err
158158
})
159-
handler.SetTimeout(30 * time.Second)
159+
handler.SetTimeout(10 * time.Minute)
160160
return handler
161161
}

0 commit comments

Comments
 (0)