Skip to content

Commit

Permalink
Merge pull request #537 from jrafanie/drop_as_dependencies_interlock_…
Browse files Browse the repository at this point in the history
…with_classic_autoloader_gone

permit_concurrent_loads is not needed with zeitwerk autoloader

(cherry picked from commit 29852c4)
  • Loading branch information
Fryguy committed Jan 5, 2024
1 parent 5f47ecb commit 344e02a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,8 @@ def self.verbose_rc(return_code)
def self.run_ruby_method(code, miq_request_id)
ActiveRecord::Base.connection_pool.release_connection unless Rails.env.test?
with_automation_env do
ActiveSupport::Dependencies.interlock.permit_concurrent_loads do
run_method(Gem.ruby, miq_request_id) do |stdin|
stdin.puts(code)
end
run_method(Gem.ruby, miq_request_id) do |stdin|
stdin.puts(code)
end
end
end
Expand Down

0 comments on commit 344e02a

Please sign in to comment.