Skip to content

Commit

Permalink
Experiment with require
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Brown committed Jul 9, 2024
1 parent 48f7174 commit 7c8d50e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cached_resource/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def concurrent_write=(value)

def require_concurrent_ruby
begin
send :require, 'concurrent/promise'
# send :require, 'concurrent/promise'
require 'concurrent/promise'
rescue LoadError
@cached_resource.logger.error(
"`concurrent_write` option is enabled, but `concurrent-ruby` is not an installed dependency"
Expand Down

0 comments on commit 7c8d50e

Please sign in to comment.