Skip to content

Commit c07153e

Browse files
Formatting
1 parent 70ad185 commit c07153e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

services/iaasalpha/wait/wait.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,21 +179,21 @@ func DeleteServerWaitHandler(ctx context.Context, a APIClientInterface, projectI
179179
}
180180

181181
// ProjectRequestWaitHandler will wait for a request to succeed.
182-
//
183-
// It receives a request ID that can be obtained from the "X-Request-Id" header in the HTTP response of any operation in the IaaS API.
184-
// To get this response header, use the "runtime.WithCaptureHTTPResponse" method from the "core" packaghe to get the raw HTTP response of an SDK operation.
182+
//
183+
// It receives a request ID that can be obtained from the "X-Request-Id" header in the HTTP response of any operation in the IaaS API.
184+
// To get this response header, use the "runtime.WithCaptureHTTPResponse" method from the "core" packaghe to get the raw HTTP response of an SDK operation.
185185
// Then, the value of the request ID can be obtained by accessing the header key which is defined in the constant "XRequestIDHeader" of this package.
186-
//
186+
//
187187
// Example usage:
188188
//
189189
// var httpResp *http.Response
190-
//
190+
//
191191
// ctxWithHTTPResp := runtime.WithCaptureHTTPResponse(context.Background(), &httpResp)
192-
//
192+
//
193193
// err = iaasalphaClient.AddPublicIpToServer(ctxWithHTTPResp, projectId, serverId, publicIpId).Execute()
194-
//
194+
//
195195
// requestId := httpResp.Header[wait.XRequestIDHeader][0]
196-
//
196+
//
197197
// _, err = wait.ProjectRequestWaitHandler(context.Background(), iaasalphaClient, projectId, requestId).WaitWithContext(context.Background())
198198
func ProjectRequestWaitHandler(ctx context.Context, a APIClientInterface, projectId, requestId string) *wait.AsyncActionHandler[iaasalpha.Request] {
199199
handler := wait.New(func() (waitFinished bool, response *iaasalpha.Request, err error) {

0 commit comments

Comments
 (0)