Skip to content

Commit e384220

Browse files
committed
Use thread_safe gem instead of concurrent
concurrent-ruby is not present in 4.2
1 parent 26c4ba3 commit e384220

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activesupport/lib/active_support/logger_thread_safe_level.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
require 'active_support/concern'
2-
require 'concurrent'
2+
require 'thread_safe'
33

44
module ActiveSupport
55
module LoggerThreadSafeLevel
66
extend ActiveSupport::Concern
77

88
def after_initialize
9-
@local_levels = Concurrent::Map.new(:initial_capacity => 2)
9+
@local_levels = ThreadSafe::Cache.new
1010
end
1111

1212
def local_log_id

0 commit comments

Comments
 (0)