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

Bubbling up the same error that redigo uses so that the logic to shor… #51

Merged
merged 1 commit into from
May 22, 2023

Conversation

MMartyn
Copy link
Contributor

@MMartyn MMartyn commented May 19, 2023

…t circuit cache is consistent when using cluster mode

What is the purpose of this pull request?

I believe this may be the source of our 404 troubles since we aren't short circuiting the same way as we were before when using redigo. With this change it will bubble up the same error that we were getting and cause it to follow the same logic.

What problem is this solving?

I have a suspicion that since this isn't short circuiting and returning false that we are indicating to the caller that there was no error and that the content was nil.

How should this be manually tested?

Not really sure tbh

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires change to documentation, which has been updated accordingly.

…t circuit cache is consistent when using cluster mode
Copy link

@eduardocesb eduardocesb left a comment

Choose a reason for hiding this comment

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

LGTM ✅

@fabianaferreira fabianaferreira merged commit 267a9f8 into master May 22, 2023
@fabianaferreira fabianaferreira deleted the fix/return-error-to-short-circuit branch May 22, 2023 16:28
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

3 participants