Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error type assertion #20

Merged
merged 1 commit into from
Jan 6, 2021

Conversation

rhuairahrighairidh
Copy link
Member

This bug was missed in the #17 refactor. The error type assertion in the Retry func assumed the error was part of the main package, and was not updated when the errors were moved to the claimer package.

Changes

  • updated the error type assertion to use go 1.13+ standard errors.As(...
  • remove ClaimError in favour of the standard error interface

@rhuairahrighairidh rhuairahrighairidh merged commit 748350c into master Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant