From 2da81671e1b2f4c33fcab5eb3641257adfdb0a76 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Fri, 23 Aug 2024 00:01:56 +1200 Subject: [PATCH] Run on whatever is the current release. --- gems.rb | 2 -- lib/async/http/faraday/adapter.rb | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gems.rb b/gems.rb index 229e4f9..9539d77 100644 --- a/gems.rb +++ b/gems.rb @@ -7,8 +7,6 @@ gemspec -gem "faraday", git: "https://github.com/lostisland/faraday.git", branch: "mg/parallel-manager-execute" - group :maintenance, optional: true do gem "bake-modernize" gem "bake-gem" diff --git a/lib/async/http/faraday/adapter.rb b/lib/async/http/faraday/adapter.rb index 633b74d..ce3352e 100644 --- a/lib/async/http/faraday/adapter.rb +++ b/lib/async/http/faraday/adapter.rb @@ -63,7 +63,11 @@ def run end def async(&block) - @barrier.async(&block) + if @barrier + @barrier.async(&block) + else + Sync(&block) + end end def execute(&block)