1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-22 21:55:10 +02:00

update actix; update examples

This commit is contained in:
Nikolay Kim
2017-10-21 15:21:16 -07:00
parent 0865071dd7
commit 4560ca17b2
10 changed files with 112 additions and 109 deletions

View File

@@ -2,6 +2,7 @@
extern crate rand;
extern crate bytes;
extern crate byteorder;
extern crate futures;
extern crate tokio_io;
extern crate tokio_core;
extern crate env_logger;
@@ -78,11 +79,6 @@ impl Handler<session::Message> for WsChatSession {
}
}
impl ResponseType<session::Message> for WsChatSession {
type Item = ();
type Error = ();
}
/// WebSocket message handler
impl Handler<ws::Message> for WsChatSession {
fn handle(&mut self, msg: ws::Message, ctx: &mut HttpContext<Self>)
@@ -194,11 +190,6 @@ impl StreamHandler<ws::Message> for WsChatSession
}
}
impl ResponseType<ws::Message> for WsChatSession {
type Item = ();
type Error = ();
}
fn main() {
let _ = env_logger::init();