Skip to content

Commit 06ed805

Browse files
Fix lint
1 parent 8229ea0 commit 06ed805

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

services/iaasalpha/wait/wait.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,12 @@ func DeleteServerWaitHandler(ctx context.Context, a APIClientInterface, projectI
182182
// To get the raw http response of an operation using the SDK, use the runtime.WithCaptureHTTPResponse method from the core pkg.
183183
// Then the value of the request id can be obtained by accessing the header key which is defined in the constant XRequestIDHeader in this package.
184184
// Example usage:
185-
// var httpResp *http.Response
186-
// ctxWithHTTPResp := runtime.WithCaptureHTTPResponse(context.Background(), &httpResp)
187-
// err = iaasalphaClient.AddPublicIpToServer(ctxWithHTTPResp, projectId, serverId, publicIpId).Execute()
188-
// requestId := httpResp.Header[wait.XRequestIDHeader][0]
185+
//
186+
// var httpResp *http.Response
187+
// ctxWithHTTPResp := runtime.WithCaptureHTTPResponse(context.Background(), &httpResp)
188+
// err = iaasalphaClient.AddPublicIpToServer(ctxWithHTTPResp, projectId, serverId, publicIpId).Execute()
189+
// requestId := httpResp.Header[wait.XRequestIDHeader][0]
190+
//
189191
// _, err = wait.ProjectRequestWaitHandler(context.Background(), iaasalphaClient, projectId, requestId).WaitWithContext(context.Background())
190192
func ProjectRequestWaitHandler(ctx context.Context, a APIClientInterface, projectId, requestId string) *wait.AsyncActionHandler[iaasalpha.Request] {
191193
handler := wait.New(func() (waitFinished bool, response *iaasalpha.Request, err error) {

0 commit comments

Comments
 (0)