Skip to content

Commit

Permalink
Merge pull request #218 from richzw/master
Browse files Browse the repository at this point in the history
feat(appstore): add RetryAfter method to Error
  • Loading branch information
takecy authored Jun 29, 2023
2 parents 9ec18b9 + 88361bb commit 18677a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions appstore/api/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ func (e *Error) ErrorMessage() string {
return e.errorMessage
}

func (e *Error) RetryAfter() int64 {
return e.retryAfter
}

func (e *Error) Retryable() bool {
// NOTE:
// RateLimitExceededError[1] could also be considered as a retryable error.
Expand Down

0 comments on commit 18677a0

Please sign in to comment.