fix: use Concurrent::Map instead of Ruby ||= to make thread safe
#2476
+1
−1
||= to make thread safe
#2476