Skip to content

Commit

Permalink
Add OnAuth msg and fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
alex179ohm committed Feb 19, 2019
1 parent 2554941 commit 993acdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ impl Actor for MyReader {
impl Handler<Msg> for MyReader {
fn handle(&mut self, msg: Msg, _: &mut Self::Context) {
println!("MyReader received {:?}", msg);
if let Ok(body) = String::from_utf8(msg.body) {
println!("utf8 msg: {}", body);
}
if let Ok(body) = String::from_utf8(msg.body) {
println!("utf8 msg: {}", body);
}
self.conn.do_send(Fin(msg.id));
}
}
Expand Down
1 change: 1 addition & 0 deletions src/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ impl StreamHandler<Cmd, Error> for Connection
}
};
info!("authenticated [{}] {:#?}", self.addr, auth_resp);
self.info_on_auth(auth_resp);
ctx.notify(Sub);
},
ConnState::Sub => {
Expand Down

0 comments on commit 993acdd

Please sign in to comment.