Skip to content

Commit 3885f6c

Browse files
authored
refer to proper variables for the timeout and connect_timeout (#493)
1 parent c8c8c6b commit 3885f6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/algolia/transport/transport.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ def build_request(method, path, body, request_options)
9696
request[:path] = build_uri_path(path, request_options.params)
9797
request[:body] = build_body(body, request_options, method)
9898
request[:headers] = generate_headers(request_options)
99+
request[:timeout] = request_options.timeout
100+
request[:connect_timeout] = request_options.connect_timeout
99101
request
100102
end
101103

0 commit comments

Comments
 (0)