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

Improve HTTP error handling #60

Merged
merged 1 commit into from
Jun 12, 2023
Merged

Improve HTTP error handling #60

merged 1 commit into from
Jun 12, 2023

Conversation

thrawn01
Copy link
Contributor

@thrawn01 thrawn01 commented Jun 8, 2023

Purpose

To improve how we report errors when making HTTP calls to other groupcache instances. See #59 for details on the proposal.

Implementation

  • Added groupcache.ErrNotFound which should be returned from an implementation of GetterFunc to indicate the requested value is not available
  • Added groupcache.ErrRemoteCall which is returned from group.Get() when an error that is not a ErrNotFound is returned during a remote HTTP instance call

@ghost
Copy link

ghost commented Jun 9, 2023

Probably want to add an entry to the CHANGELOG for this as well?

Copy link

@ToutPetitAdrien ToutPetitAdrien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@thrawn01 thrawn01 merged commit 9f417fb into master Jun 12, 2023
2 checks passed
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.

None yet

2 participants