Skip to content

Commit c479f79

Browse files
committed
Fixed bug: left a serizalize in the bus.
1 parent 6d29e96 commit c479f79

File tree

6 files changed

+6
-9
lines changed

6 files changed

+6
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The main selling point of Fluorine is to push toward a complete configuration so
4141
Check the current version at the top of the page if the one below is not the same.
4242

4343
```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
4545
echo '{:fluorine-root "/path/to/data/folder"}' > fluorine.config
4646
java -jar fluorine.jar
4747
```
@@ -53,7 +53,7 @@ Notice that `:fluorine-root` should point to the folder that Fluorine should wat
5353
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.
5454

5555
```clojure
56-
:dependencies [[net.reborg/fluorine "0.0.8"]]
56+
:dependencies [[net.reborg/fluorine "0.0.9"]]
5757
```
5858

5959
## How to use

demo/fluorine-client/project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(defproject fluorine-client "0.0.1"
22
:description "Fluorine demo app"
33
:dependencies [[org.clojure/clojure "1.8.0"]
4-
[net.reborg/fluorine "0.0.8"]
4+
[net.reborg/fluorine "0.0.9"]
55
]
66
:uberjar-name "fluorine-client.jar"
77
:profiles {:uberjar {:main fluorine-client.core

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject net.reborg/fluorine "0.0.8"
1+
(defproject net.reborg/fluorine "0.0.9"
22
:description "Distributed configuration for Clojure"
33
:url "https://github.com/reborg/fluorine"
44
:license {:name "Eclipse Public License - v 1.0"

src/net/reborg/fluorine/bus.clj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
(def ^:private clients (atom {}))
1010

11-
(defn- serialize [x]
12-
(with-out-str (clojure.pprint/write x)))
13-
1411
(defn start [] (b/event-bus))
1512

1613
(defn stop
@@ -26,7 +23,7 @@
2623
(fn [event]
2724
(b/publish! bus
2825
(:channel event)
29-
(serialize (:msg event)))))
26+
(:msg event))))
3027

3128
(defn init!
3229
"The bus needs to be bootstrapped after the change

src/net/reborg/fluorine_client.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
(s/consume
6363
(fn [new-cfg]
6464
(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)))
6666
(reset! cfg new-cfg)))
6767
conn)))
6868

target/fluorine.jar

-1.11 KB
Binary file not shown.

0 commit comments

Comments
 (0)