Skip to content

Commit e447d32

Browse files
committed
Tweaks
1 parent 7f93667 commit e447d32

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

repl_sessions/config_walkthrough.clj

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
[lambdaisland.config :as config]))
44

55
(def config
6-
(config/create {:prefix "my-app"
7-
:prefix-env true}))
6+
(config/create {:prefix "my-app"}))
87

9-
(:values config)
10-
11-
()
12-
13-
(config/source config :bar/baz)
8+
(config/get config :http/port)

src/lambdaisland/config.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
(-value [this k]
6363
(when-not @cache
6464
(reset! cache (aero/read-config path opts)))
65-
(get @cache k))
65+
(c/get @cache k))
6666
(-source [this k]
6767
(cond
6868
(instance? java.io.File path)
@@ -87,7 +87,7 @@
8787

8888
(deftype PropertiesProvider [prefix]
8989
ConfigProvider
90-
(-value [this k] (System/getProperty (prop-key prefix k)))
90+
(-value [this k] (System/getProperty (property-key prefix k)))
9191
(-source [this k] (str (property-key prefix k) " java system property"))
9292
(-reload [this]))
9393

0 commit comments

Comments
 (0)