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

notify: refactor code to retry requests #1974

Merged
merged 2 commits into from
Aug 2, 2019

Conversation

simonpasquier
Copy link
Member

Follow up of #1965

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Copy link
Contributor

@stuartnelson3 stuartnelson3 left a comment

Choose a reason for hiding this comment

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

thanks for doing this, and for writing all the tests. one small comment that isn't a "big issue" to me, I guess I just feel like if we're going to modify the code we might as well discuss it. Process to me makes it sound like it's doing some sort of work with a side effect? Check seems like something that would read better in the notifiers using it, but that's just my "first glance" opinion. What do you think?

notify/util.go Outdated Show resolved Hide resolved
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Good idea to deduplicate this logic into a retrier.

@simonpasquier simonpasquier merged commit 655947d into prometheus:master Aug 2, 2019
@simonpasquier simonpasquier deleted the refactor-retry branch August 2, 2019 14:17
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.

3 participants