Skip to content

Commit

Permalink
Add #close (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle authored Aug 20, 2024
1 parent 3ab4300 commit 2d35fce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/faraday/adapter/net_http_persistent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def call(env)
raise Faraday::TimeoutError, e
end

def close
@cached_connection&.shutdown
end

private

def build_connection(env)
Expand Down

0 comments on commit 2d35fce

Please sign in to comment.