1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-03 08:41:55 +00:00

update actix

This commit is contained in:
Nikolay Kim 2018-01-28 08:26:36 -08:00
parent 55b2fb7f77
commit 715ec4ae2f
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ impl Handler<ClientCommand> for ChatClient {
/// Server communication
impl FramedActor<TcpStream, codec::ClientChatCodec> for ChatClient {
impl FramedHandler<TcpStream, codec::ClientChatCodec> for ChatClient {
fn handle(&mut self, msg: io::Result<codec::ChatResponse>, ctx: &mut Context<Self>) {
match msg {

View file

@ -63,7 +63,7 @@ impl Actor for ChatSession {
}
/// To use `Framed` we have to define Io type and Codec
impl FramedActor<TcpStream, ChatCodec> for ChatSession {
impl FramedHandler<TcpStream, ChatCodec> for ChatSession {
/// This is main event loop for client requests
fn handle(&mut self, msg: io::Result<ChatRequest>, ctx: &mut Context<Self>) {