Skip to content

Commit

Permalink
Specify timeout unit and default
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzasa authored and picandocodigo committed Jun 25, 2024
1 parent 2e37d30 commit f493396
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/elastic/transport/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ class Client
#
# @option arguments [Boolean] :reload_on_failure Reload connections after failure (false by default)
#
# @option arguments [Integer] :request_timeout The request timeout to be passed to transport in options
# @option arguments [Integer] :request_timeout The request timeout to be passed to transport in options in seconds
# (the default value is taken from the transport)
#
# @option arguments [Symbol] :adapter A specific adapter for Faraday (e.g. `:patron`)
#
Expand All @@ -110,7 +111,7 @@ class Client
#
# @option arguments [String] :send_get_body_as Specify the HTTP method to use for GET requests with a body.
# (Default: GET)
# @option arguments [true, false] :compression Whether to compress requests. Gzip compression will be used.
# @option arguments [Boolean] :compression Whether to compress requests. Gzip compression will be used.
# The default is false. Responses will automatically be inflated if they are compressed.
# If a custom transport object is used, it must handle the request compression and response inflation.
#
Expand Down

0 comments on commit f493396

Please sign in to comment.