1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 01:52:57 +01: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>) {