mirror of
https://github.com/actix/actix-web.git
synced 2025-02-20 21:06:17 +00:00
update actix
This commit is contained in:
parent
55b2fb7f77
commit
715ec4ae2f
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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>) {
|
||||
|
|
Loading…
Reference in a new issue