lib/rails_failover/redis/handler.rb in rails_failover-0.5.0 vs lib/rails_failover/redis/handler.rb in rails_failover-0.5.1

- old
+ new

@@ -1,21 +1,19 @@ # frozen_string_literal: true require 'monitor' require 'singleton' -require 'digest' module RailsFailover class Redis class Handler include Singleton include MonitorMixin PRIMARY_ROLE_STATUS = "role:master" PRIMARY_LOADED_STATUS = "loading:0" VERIFY_FREQUENCY_BUFFER_PRECENT = 20 - SEPERATOR = "__RAILS_FAILOVER__" def initialize @primaries_down = {} @clients = {} @ancestor_pid = Process.pid @@ -120,13 +118,9 @@ primaries_down[options[:id]] end end private - - def id_digest(id) - Digest::MD5.hexdigest(id) - end def all_primaries_up mon_synchronize { primaries_down.empty? } end