Rename AppServer to AppState
This commit is contained in:
parent
6f8d63e7be
commit
8dc9072fe8
6 changed files with 19 additions and 19 deletions
emgauwa-core/src/handlers/v1/ws
|
@ -6,7 +6,7 @@ use actix_web_actors::ws;
|
|||
use emgauwa_lib::errors::EmgauwaError;
|
||||
use sqlx::{Pool, Sqlite};
|
||||
|
||||
use crate::app_state::AppServer;
|
||||
use crate::app_state::AppState;
|
||||
use crate::handlers::v1::ws::controllers::ControllerWs;
|
||||
|
||||
pub mod controllers;
|
||||
|
@ -14,7 +14,7 @@ pub mod controllers;
|
|||
#[get("/api/v1/ws/controllers")]
|
||||
pub async fn ws_controllers(
|
||||
pool: web::Data<Pool<Sqlite>>,
|
||||
app_server: web::Data<Addr<AppServer>>,
|
||||
app_server: web::Data<Addr<AppState>>,
|
||||
req: HttpRequest,
|
||||
stream: web::Payload,
|
||||
) -> Result<HttpResponse, EmgauwaError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue