Commit 1ac96603 authored by Pawel Chojnacki's avatar Pawel Chojnacki

Let mutex be initialized only once

parent 05373c24
......@@ -6,7 +6,7 @@ module Gitlab
extend ActiveSupport::Concern
included do
@@_metric_provider_mutex = Mutex.new
@@_metric_provider_mutex ||= Mutex.new
@_metrics_provider_cache = {}
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment