Skip to content

Commit

Permalink
Make options backwrads-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
ifesdjeen committed Jan 9, 2016
1 parent c9f2e1c commit d64b750
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/clojure/clojurewerkz/cassaforte/query.clj
Expand Up @@ -554,7 +554,7 @@
statements)))

(def ^:private create-keyspace-options
{:replication (fn [opts replication] (.replication opts replication))
{:replication (fn [opts replication] (.replication opts (clojure.walk/stringify-keys replication)))
:durable-writes (fn [opts durable-writes] (.durableWrites opts durable-writes))})

(defn resolve-create-keyspace-option
Expand Down
4 changes: 2 additions & 2 deletions test/clojure/clojurewerkz/cassaforte/query_test.clj
Expand Up @@ -580,8 +580,8 @@
(create-keyspace "foo"
(with
{:replication
{"class" "SimpleStrategy"
"replication_factor" 1}})
{:class "SimpleStrategy"
:replication_factor 1}})
(if-not-exists))))))

(deftest test-alter-keyspace
Expand Down

0 comments on commit d64b750

Please sign in to comment.