File tree Expand file tree Collapse file tree 6 files changed +6
-9
lines changed Expand file tree Collapse file tree 6 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ The main selling point of Fluorine is to push toward a complete configuration so
41
41
Check the current version at the top of the page if the one below is not the same.
42
42
43
43
``` bash
44
- curl -O -L https://github.com/reborg/fluorine/releases/download/0.0.8 /fluorine.jar
44
+ curl -O -L https://github.com/reborg/fluorine/releases/download/0.0.9 /fluorine.jar
45
45
echo ' {:fluorine-root "/path/to/data/folder"}' > fluorine.config
46
46
java -jar fluorine.jar
47
47
```
@@ -53,7 +53,7 @@ Notice that `:fluorine-root` should point to the folder that Fluorine should wat
53
53
Check the current version at the top of the page if the one below is not the same. Probably better to use the most recent.
54
54
55
55
``` clojure
56
- :dependencies [[net.reborg/fluorine " 0.0.8 " ]]
56
+ :dependencies [[net.reborg/fluorine " 0.0.9 " ]]
57
57
```
58
58
59
59
## How to use
Original file line number Diff line number Diff line change 1
1
(defproject fluorine-client " 0.0.1"
2
2
:description " Fluorine demo app"
3
3
:dependencies [[org.clojure/clojure " 1.8.0" ]
4
- [net.reborg/fluorine " 0.0.8 " ]
4
+ [net.reborg/fluorine " 0.0.9 " ]
5
5
]
6
6
:uberjar-name " fluorine-client.jar"
7
7
:profiles {:uberjar {:main fluorine-client.core
Original file line number Diff line number Diff line change 1
- (defproject net.reborg /fluorine " 0.0.8 "
1
+ (defproject net.reborg /fluorine " 0.0.9 "
2
2
:description " Distributed configuration for Clojure"
3
3
:url " https://github.com/reborg/fluorine"
4
4
:license {:name " Eclipse Public License - v 1.0"
Original file line number Diff line number Diff line change 8
8
9
9
(def ^:private clients (atom {}))
10
10
11
- (defn- serialize [x]
12
- (with-out-str (clojure.pprint/write x)))
13
-
14
11
(defn start [] (b/event-bus ))
15
12
16
13
(defn stop
26
23
(fn [event]
27
24
(b/publish! bus
28
25
(:channel event)
29
- (serialize ( :msg event) ))))
26
+ (:msg event))))
30
27
31
28
(defn init!
32
29
" The bus needs to be bootstrapped after the change
Original file line number Diff line number Diff line change 62
62
(s/consume
63
63
(fn [new-cfg]
64
64
(let [new-cfg (get-in (data/unmarshall new-cfg) kk)]
65
- (log/info " Received new config" (diff @cfg new-cfg ))
65
+ (let [d ( diff @cfg new-cfg)] ( log/info " Received new config. Diff: " (second d) ))
66
66
(reset! cfg new-cfg)))
67
67
conn)))
68
68
You can’t perform that action at this time.
0 commit comments