Skip to content

Commit

Permalink
feat(appstore): add RetryAfter method to Error
Browse files Browse the repository at this point in the history
  • Loading branch information
richzw committed Jun 29, 2023
1 parent 9ec18b9 commit 88361bb
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 88361bb

Please sign in to comment.