Skip to content

Commit

Permalink
status code を定数に置き換える
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexa committed Mar 4, 2024
1 parent f99b71f commit 1d23e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amazon_transcribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (at *AmazonTranscribe) Start(ctx context.Context, r io.Reader) (*transcribe
message := reqErr.Message()

var retry bool
if code == 429 {
if code == http.StatusTooManyRequests {
retry = true
}

Expand Down

0 comments on commit 1d23e3c

Please sign in to comment.