lib/postman.rb
# Rest for database recovery and restore the consumer.
Rest for database recovery and restore the consumer.
Rest for database recovery and restore the consumer .
def attempt_recovery
    return unless recovery_due?
    warn "Attempting recovery of database connection: #{@recovery_attempts}"
    if recovered?
      running!
      subscribe!
    else
      @recovery_attempts += 1
      @recover_at = Time.current + delay_for_attempt
    end
  end
def attempt_recovery return unless recovery_due? warn "Attempting recovery of database connection: #{@recovery_attempts}" if recovered? running! subscribe! else @recovery_attempts += 1 @recover_at = Time . current + delay_for_attempt end end
Rest for database recovery and restore the consumer.
Rest for database recovery and restore the consumer .