require 'sidekiq/worker'
require 'travis/services/requests/receive'

module Travis
  module Sidekiq
    class BuildRequest
      include ::Sidekiq::Worker

      attr_accessor :service, :payload

      def perform(payload)
        @payload = payload
        run
      end

      def run
        service.run
      end

      def service
        @service ||= Travis::Core::Services::Requests::Receive.new(nil, payload)
      end
    end
  end
end

require 'sidekiq/worker'

module Travis
  module Sidekiq
    class BuildRequest
      include ::Sidekiq::Worker

      attr_accessor :service, :payload

      def perform(payload)
        @payload = payload
        run
      end

      def run
        service.run
      end

      def service
        @service ||= Travis::Services::Requests::Receive.new(nil, payload)
      end
    end
  end
end

Remove direct require for now.
Remove direct require for now.

Have to figure out how to deal with these circular dependencies
better. For now, it relies on the file being loaded by gatekeeper.
