Skip to content

Commit

Permalink
Add util functions to read configs
Browse files Browse the repository at this point in the history
  • Loading branch information
tarun-nil committed Nov 30, 2023
1 parent 49f2f6a commit 6071fe8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions swift-ticketing/src/swift_ticketing/config.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
(-> cfg-path
(io/resource)
(aero/read-config)))

(defn read-app-config [] (read-config "config.edn"))
(defn read-test-config [] (read-config "config.test.edn"))
2 changes: 1 addition & 1 deletion swift-ticketing/src/swift_ticketing/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

(defn -main
[& args]
(let [config (config/read-config "config.edn")
(let [config (config/read-app-config)
redis-config {:pool redis-conn-pool
:spec (:redis config)}
locking-strategy (:locking-strategy config)]
Expand Down

0 comments on commit 6071fe8

Please sign in to comment.