Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Set middleware_mutex when middleware/adapter classes are defined #1074
This is an attempt to fix #1065 by calling
Right now, the proper way to build a
conn = Faraday.new(url: "some-base-url") do |f| f.request :something f.response :or_other f.adapter :some_http_client end conn.app
At this point, it should be safe to use shared connection object across multiple threads. But, I don't know how often it's used like this, so there are likely some more bugs.
I also have another larger solution in mind that requires some refactoring. I'll publish once I have it working.