Sha256: 075c33e1386b393b17c0938739635a4b9c41d56de35e15bd3bf9d7aa422d4ef7

Contents?: true

Size: 429 Bytes

Versions: 15

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

module Kiev
  module Shoryuken
    module Middleware
      class TreePathSuffix
        def initialize(tag)
          @tag = tag.dup.freeze
        end

        def call(_worker, _queue, _message, _body)
          request_store = Kiev::RequestStore.store
          request_store[:tree_path] ||= ""
          request_store[:tree_path] += @tag
          yield
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kiev-4.9.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.8.3 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.8.2 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.8.1 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.8.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.7.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.6.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.5.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.4.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.3.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.2.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.1.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-4.0.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-3.0.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb
kiev-2.8.0 lib/kiev/shoryuken/middleware/tree_path_suffix.rb