Skip to content

Commit

Permalink
fix schema for deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Dec 21, 2023
1 parent 123fc61 commit 7b582a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scalardb/src/scalardb/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
[test schemata]
(let [properties (ext/create-properties (:db test) test)
options (ext/create-table-opts (:db test) test)]
(doseq [schema schemata]
(doseq [schema (map cheshire/generate-string schemata)]
(loop [retries RETRIES]
(when (zero? retries)
(throw (ex-info "Failed to set up tables" {:schema schema})))
Expand All @@ -36,8 +36,7 @@
(SchemaLoader/unload properties schema true)
(catch Exception e (warn (.getMessage e))))
(exponential-backoff (- RETRIES retries)))
(let [schema (cheshire/generate-string schema)
result (try
(let [result (try
(SchemaLoader/load properties schema options true)
:success
(catch Exception e
Expand Down

0 comments on commit 7b582a3

Please sign in to comment.