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

dynamic Timeout configuration for HTTP client #116

Closed
fertobar opened this issue Sep 12, 2019 · 2 comments
Closed

dynamic Timeout configuration for HTTP client #116

fertobar opened this issue Sep 12, 2019 · 2 comments

Comments

@fertobar
Copy link

hello,
there is a way to configure the timeout for the HTTP client?

Timeout: 10 * time.Second,

I would like to set eg in 2 seconds to reduce the probability of a bottle neck in a Sync notification in case service is not available

@vmihailenco
Copy link
Contributor

Hi,

You should be able to provide HTTPClient in NotifierOptions -

HTTPClient *http.Client

@fertobar
Copy link
Author

thanks @vmihailenco!

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

No branches or pull requests

2 participants