You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: queues.rb
    path of file: ./repos/sidekiq-limit_fetch/lib/sidekiq/limit_fetch
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Sidekiq
  module LimitFetch
    module Queues
      extend self

      THREAD_KEY 
    
      def apply_blocks_to_queues
        @queues.uniq.each do |queue_name|
          Sidekiq::Queue[queue_name].unblock
        end

        @blocks.to_a.each do |it|
          if it.is_a? Array
            it.each { |name| Sidekiq::Queue[name].block_except it }
          else
            Sidekiq::Queue[it].block
          end
        end