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: expirer.rb
    path of file: ./repos/karafka/lib/karafka/pro/processing/filters
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# This Karafka component is a Pro component under a commercial license.
# This Karafka component is NOT licensed under LGPL.
#
# All of the commercial components are present in the lib/karafka/pro directory of this
# reposi
    
          def apply!(messages)
            @applied = false

            # Time on message is in seconds with ms precision, so we need to convert the ttl that
            # is in ms to this format
            border = ::Time.now.utc - @ttl / 1_000.to_f

            messages.delete_if do |message|
              too_old = message.timestamp < border

              @applied = true if too_old

              too_old
            end
          end