neuron
neuron copied to clipboard
Documentation error: Overriding HTTP Timeout
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"
.