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

rename Application

This commit is contained in:
Nikolay Kim
2018-03-31 00:16:55 -07:00
parent 7a743fa6b5
commit 3ee228005d
51 changed files with 237 additions and 238 deletions

View File

@ -11,7 +11,7 @@ use std::cell::Cell;
use actix::prelude::*;
use actix_web::{
http, server, ws, middleware, Application, HttpRequest, HttpResponse};
http, server, ws, middleware, App, HttpRequest, HttpResponse};
/// Application state
struct AppState {
@ -59,7 +59,7 @@ fn main() {
let sys = actix::System::new("ws-example");
let _ = server::new(
|| Application::with_state(AppState{counter: Cell::new(0)})
|| App::with_state(AppState{counter: Cell::new(0)})
// enable logger
.middleware(middleware::Logger::default())
// websocket route