Skip to content

Commit

Permalink
fix(cassandra) allow overriding consistency level
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Jul 5, 2016
1 parent bd00edf commit 585fb17
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kong/dao/cassandra_db.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ function CassandraDB:new(options)
default_port = options.port
},
query_options = {
prepare = true
prepare = true,
consistency = cassandra.consistencies[options.consistency:lower()]
},
socket_options = {
connect_timeout = options.timeout,
read_timeout = options.timeout
},
ssl_options = {
enabled = options.ssl.enabled,
Expand Down

0 comments on commit 585fb17

Please sign in to comment.