neuron icon indicating copy to clipboard operation
neuron copied to clipboard

Documentation error: Overriding HTTP Timeout

Open dingosky opened this issue 3 years ago • 0 comments

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".

dingosky avatar Nov 28 '21 20:11 dingosky