lib/contrast/agent/service_heartbeat.rb in contrast-agent-4.8.0 vs lib/contrast/agent/service_heartbeat.rb in contrast-agent-4.9.0
- old
+ new
@@ -1,17 +1,16 @@
# Copyright (c) 2021 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true
-require 'contrast/components/interface'
+require 'contrast/components/logger'
require 'contrast/agent/worker_thread'
module Contrast
module Agent
# The ServiceHeartbeat functions to keep the Contrast Service alive and
# ensure that it maintains this Agent's ApplicationContext.
class ServiceHeartbeat < WorkerThread
- include Contrast::Components::Interface
- access_component :logging
+ include Contrast::Components::Logger::InstanceMethods
# Spec recommends 30 seconds, we're going with 15.
REFRESH_INTERVAL_SEC = 15
def start_thread!