Skip to content

Commit

Permalink
HTTP.timeout now assumes klass based on input
Browse files Browse the repository at this point in the history
As of httprb/http#446

Increasing the http dependancy to `4.0` where this change is released.
  • Loading branch information
Chrizpy committed Mar 31, 2022
1 parent 3b1519a commit 7b153c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/redd/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def connection
# TODO: Make timeouts configurable
@connection ||= HTTP.persistent(@endpoint)
.headers('User-Agent' => @user_agent)
.timeout(:per_operation, write: 5, connect: 5, read: 5)
.timeout(write: 5, connect: 5, read: 5)
end
end
end
2 changes: 1 addition & 1 deletion redd.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_dependency 'http', '~> 2.2'
spec.add_dependency 'http', '>= 4.0', '< 6.0'
spec.add_dependency 'lazy_lazer', '~> 0.8.1'

spec.add_development_dependency 'pry', '~> 0.10'
Expand Down

0 comments on commit 7b153c9

Please sign in to comment.