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: expiring_email_notification_worker.rb
    path of file: ./repos/gitlabhq/app/workers/members
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Members
  class ExpiringEmailNotificationWorker # rubocop:disable Scalability/CronWorkerContext
    include ApplicationWorker

    data_consistency :always # rubocop:disable SidekiqLoadBalancing/WorkerDataConsistency
    feature_category :system_access
    urgency :low
    idempotent!

    def perform(member_id
    
    def perform(member_id)
      notification_service = NotificationService.new
      member = ::Member.find_by_id(member_id)

      return unless member
      return unless Feature.enabled?(:member_expiring_email_notification, member.source.root_ancestor)
      return if member.expiry_notified_at.present?

      with_context(user: member.user) do
        notification_service.member_about_to_expire(member)
        Gitlab::AppLogger.info(message: "Notifying user about expiring membership", member_id: member.id)

        member.update(expiry_notified_at: Time.current)
      end
    end