Skip to content

Commit 264acb9

Browse files
author
Brian L. Troutwine
committed
Bump cernan to 0.2.6
In my rectification of stable with master the commits that pushed backends into their own thread were not applied. The commit previous to this re-applies that work to cernan master and this commit finalizes it. Signed-off-by: Brian L. Troutwine <blt@postmates.com>
1 parent c1e75c1 commit 264acb9

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cernan"
3-
version = "0.2.5"
3+
version = "0.2.6"
44
authors = ["Brian L. Troutwine <blt@postmates.com>"]
55
build = "build.rs"
66

src/main.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ fn main() {
104104
});
105105

106106
loop {
107-
let result = match event_recv.recv() {
108-
Ok(res) => res,
107+
match event_recv.recv() {
108+
Ok(result) => {
109+
let arc_res = Arc::new(result);
110+
for backend in &mut backends {
111+
backend.send(arc_res.clone()).expect("oops, couldn't send!");
112+
}
113+
}
109114
Err(e) => panic!(format!("Event channel has hung up: {:?}", e)),
110-
};
111-
112-
let arc_res = Arc::new(result);
113-
for backend in &mut backends {
114-
backend.send(arc_res.clone()).expect("oops, couldn't send!");
115115
}
116116
}
117117
}

0 commit comments

Comments
 (0)