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

Documentation error: Overriding HTTP Timeout #69

Open
dingosky opened this issue Nov 28, 2021 · 0 comments
Open

Documentation error: Overriding HTTP Timeout #69

dingosky opened this issue Nov 28, 2021 · 0 comments

Comments

@dingosky
Copy link

There is a simple error in the documentation regarding the example for overriding the default HTTP timeout of 5 seconds.

The code snippet:
Neuron.Config.set(url: "https://example.com/graph", connection_opts: [recv_timeout: 15_000])

should be:
Neuron.Config.set(url: "https://example.com/graph", connection_opts: [timeout: 15_000])

That is, the configuration option should be timeout, not recv_timeout.

Note the correct usage in the Neuron.Connection.HttpTest test "with custom connection options".

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

1 participant