1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

do not re-export HttpServer from server module

This commit is contained in:
Nikolay Kim
2018-04-06 08:40:11 -07:00
parent 12586db15c
commit 2dafd9c681
21 changed files with 47 additions and 47 deletions

View File

@ -17,7 +17,7 @@ extern crate actix_web;
use std::time::Instant;
use actix::*;
use actix_web::{http, fs, ws, App, HttpRequest, HttpResponse, HttpServer, Error};
use actix_web::{http, fs, ws, server::HttpServer, App, HttpRequest, HttpResponse, Error};
mod codec;
mod server;
@ -183,7 +183,7 @@ fn main() {
}));
// Create Http server with websocket support
let addr = HttpServer::new(
HttpServer::new(
move || {
// Websocket sessions state
let state = WsChatSessionState { addr: server.clone() };