Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/processes/imap_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ class ImapClient
VERSION="1.0.0"
end

require 'imap_daemon_heartbeat'
require 'call_new_mail_webhook'
require 'imap_client/rendezvous_hash'
require 'imap_client/maybe'
require 'imap_client/process_uid'
Expand Down
11 changes: 0 additions & 11 deletions app/processes/imap_client/daemon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def initialize(options = {})

def run
trap_signals
force_class_loading
maybe_start_profiling

# If stress testing, start a log.
Expand Down Expand Up @@ -112,16 +111,6 @@ def clear_error_count(user_id)

private


def force_class_loading
# Force ImapDaemonHeartbeat to load before we create any
# threads. This fixes a "Circular dependency detected while
# autoloading constant ImapDaemonHeartbeat" error.
ImapDaemonHeartbeat
CallNewMailWebhook
self.error_counts = {}
end

def start_heartbeat_thread
self.heartbeat_thread = Thread.new do
heartbeat_thread_runner
Expand Down