Welcome to mirror list, hosted at ThFree Co, Russian Federation.

redis_adapter_when_peek_enabled.rb « performance_bar « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d997760c464e3af881a8cba83f5a1b63ba79aa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

# Adapted from https://github.com/peek/peek/blob/master/lib/peek/adapters/redis.rb
module Gitlab
  module PerformanceBar
    module RedisAdapterWhenPeekEnabled
      def save
        super unless ::Peek.request_id.blank?
      end
    end
  end
end