Skip to content

Commit

Permalink
Bump cernan to 0.2.6
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian L. Troutwine committed Aug 9, 2016
1 parent c1e75c1 commit 264acb9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cernan"
version = "0.2.5"
version = "0.2.6"
authors = ["Brian L. Troutwine <blt@postmates.com>"]
build = "build.rs"

Expand Down
14 changes: 7 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ fn main() {
});

loop {
let result = match event_recv.recv() {
Ok(res) => res,
match event_recv.recv() {
Ok(result) => {
let arc_res = Arc::new(result);
for backend in &mut backends {
backend.send(arc_res.clone()).expect("oops, couldn't send!");
}
}
Err(e) => panic!(format!("Event channel has hung up: {:?}", e)),
};

let arc_res = Arc::new(result);
for backend in &mut backends {
backend.send(arc_res.clone()).expect("oops, couldn't send!");
}
}
}

0 comments on commit 264acb9

Please sign in to comment.