Skip to content

Commit d4fd4c9

Browse files
authored
Fix config init in benchmark. (#745)
1 parent cba685c commit d4fd4c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

benchmark/src/benchmark/measure.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
(defn init-db [config]
1717
(d/delete-database config)
18-
(d/create-database config)
19-
(d/connect config))
18+
(let [config (d/create-database config)]
19+
[(d/connect config) config]))
2020

2121
(defn init-tx [entity-count conn]
2222
(when (= :write (get-in @conn [:config :schema-flexibility]))
@@ -98,7 +98,7 @@
9898
(assoc :backend (get-in config [:store :backend]))
9999
(dissoc :store))
100100
datom-count (* entity-count (count c/schema))
101-
conn (init-db unique-cfg)
101+
[conn unique-cfg] (init-db unique-cfg)
102102
initial-tx (init-tx entity-count conn)
103103
measurements (vec (if (some? make-fn-invocation)
104104
(do

0 commit comments

Comments
 (0)