-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat(notifier): retry mechanism on slack notif #137
base: main
Are you sure you want to change the base?
Conversation
plugins/notifiers/client.go
Outdated
@@ -19,7 +20,8 @@ type Client interface { | |||
} | |||
|
|||
const ( | |||
ProviderTypeSlack = "slack" | |||
ProviderTypeSlack = "slack" | |||
DefaultTimeoutInSeconds = 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also can be part of pkg/http
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Timeout is the part of the new HTTP client from Go package. Let's just remove the const and use the default from the http package (90 secs). But still this 10 secs should be set on config since 90 is too much for the timeout.
Co-authored-by: StewartJingga <[email protected]>
Co-authored-by: StewartJingga <[email protected]>
No description provided.