Skip to content

Commit 8f4258f

Browse files
committed
Stack/heap
1 parent 795053b commit 8f4258f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/service/transcribe/start_transcription_job_action.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ func (a *startTranscriptionJobAction) Invoke(ctx context.Context, req action.Inv
210210

211211
// Wait for job to move beyond QUEUED: treat IN_PROGRESS or COMPLETED as success, FAILED as failure, QUEUED transitional.
212212
fr, err := actionwait.WaitForStatus(ctx, func(ctx context.Context) (actionwait.FetchResult[*awstypes.TranscriptionJob], error) {
213-
getOutput, gerr := conn.GetTranscriptionJob(ctx, &transcribe.GetTranscriptionJobInput{TranscriptionJobName: aws.String(transcriptionJobName)})
213+
input := transcribe.GetTranscriptionJobInput{TranscriptionJobName: aws.String(transcriptionJobName)}
214+
getOutput, gerr := conn.GetTranscriptionJob(ctx, &input)
214215
if gerr != nil {
215216
return actionwait.FetchResult[*awstypes.TranscriptionJob]{}, fmt.Errorf("get transcription job: %w", gerr)
216217
}

0 commit comments

Comments
 (0)