Skip to content

Commit

Permalink
remove twitter_cassandra
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcdermottDatto committed Sep 13, 2017
1 parent 9537ea2 commit 03ad193
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions lib/cassandra_datum/cassandra_retry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,6 @@ def initialize(message)
attr_reader :message
end
end

# This code is left here for documentation sake. We used to get TransportException
# from Thrift, but there is no equivalent with our CQL driver.
##################################
# unless Object.const_defined?('Thrift::TransportException')
# class Thrift::TransportException < Thrift::Exception
# UNKNOWN = 0
# NOT_OPEN = 1
# ALREADY_OPEN = 2
# TIMED_OUT = 3
# END_OF_FILE = 4

# attr_reader :type

# def initialize(type = UNKNOWN, message = nil)
# super(message)
# @type = type
# end
# end
# end

unless Object.const_defined?('::ThriftClient::NoServersAvailable')
class ::ThriftClient::NoServersAvailable < Cassandra::Error
end
end

unless Object.const_defined?('::CassandraThrift::TimedOutException')
class ::CassandraThrift::TimedOutException < Cassandra::Error
end
end
end

module CassandraRetry
Expand Down

0 comments on commit 03ad193

Please sign in to comment.