Skip to content

Commit

Permalink
[rb] deprecating Persistent HTTP client subclass because the default …
Browse files Browse the repository at this point in the history
…HTTP client now uses persistence

not adding specs to test this deprecation to avoid adding the dependencies that will just get removed
  • Loading branch information
titusfortner committed Jan 14, 2021
1 parent 689ff47 commit f6d831b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rb/lib/selenium/webdriver/remote/http/persistent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ module Remote
module Http
# @api private
class Persistent < Default
def initialize(open_timeout: nil, read_timeout: nil)
WebDriver.logger.deprecate("Selenium::WebDriver::Remote::Http::Persistent",
id: :http_persistent) {"The default HTTP client now uses persistence."}
super
end

def close
@http&.shutdown
end
Expand Down

0 comments on commit f6d831b

Please sign in to comment.