Skip to content

Commit fde3482

Browse files
committed
Move register_middleware to faraday.rb
1 parent abdcbd6 commit fde3482

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/async/http/faraday.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@
2020

2121
require_relative "faraday/version"
2222
require_relative "faraday/adapter"
23+
24+
Faraday::Adapter.register_middleware :async_http => Async::HTTP::Faraday::Adapter

lib/async/http/faraday/adapter.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,3 @@ def ssl_context_for(options)
6464
end
6565
end
6666
end
67-
68-
module Faraday
69-
class Adapter
70-
register_middleware :async_http => Async::HTTP::Faraday::Adapter
71-
end
72-
end

0 commit comments

Comments
 (0)