lib/cassandra-cql/database.rb in cassandra-cql-1.1.0 vs lib/cassandra-cql/database.rb in cassandra-cql-1.1.1
- old
+ new
@@ -26,10 +26,11 @@
@options = {
:keyspace => 'system'
}.merge(options)
@thrift_client_options = {
- :exception_class_overrides => CassandraCQL::Thrift::InvalidRequestException
+ :exception_class_overrides => CassandraCQL::Thrift::InvalidRequestException,
+ :connect_timeout => 5
}.merge(thrift_client_options)
@keyspace = @options[:keyspace]
@cql_version = @options[:cql_version]
@servers = servers