Skip to content

Commit

Permalink
fix schema for deletion (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 authored Dec 27, 2023
1 parent 123fc61 commit 23f5610
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 23f5610

Please sign in to comment.