Skip to content

Commit

Permalink
accept a derive function in parse instead of a transducer
Browse files Browse the repository at this point in the history
  • Loading branch information
zonotope committed Feb 23, 2025
1 parent f86033e commit 7a9ca1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clj/fluree/db/connection/config.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@

(defn parse
([cfg]
(parse cfg (map derive-node-id)))
([cfg derive-xf]
(parse cfg derive-node-id))
([cfg derive-fn]
(into base-config
(comp (map keywordize-node-ids)
derive-xf
(map derive-fn)
(map (juxt get-id identity)))
(standardize cfg))))

0 comments on commit 7a9ca1e

Please sign in to comment.