Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelillo15 committed May 25, 2024
1 parent 3dd41c1 commit 39f4303
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/services/ws.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@



use actix::{Actor, AsyncContext, Recipient, StreamHandler};
use actix_web::{Error, get, HttpRequest, HttpResponse, web};
use actix_web::web::Data;
use actix_web::{get, web, Error, HttpRequest, HttpResponse};
use actix_web_actors::ws;
use log::{debug, error};
use serde::{Deserialize};
use serde::Deserialize;
use uuid::Uuid;


use crate::AppState;
use crate::managers::{ConnectedMessage, PropagateMessage};
use crate::{AppState};

#[derive(Clone)]
pub struct Handler {
Expand Down Expand Up @@ -158,7 +154,7 @@ async fn index(
error!("{:?}", e);
Ok(HttpResponse::from_error(e))
}
}
};
}

pub fn endpoints(scope: actix_web::Scope) -> actix_web::Scope {
Expand Down

0 comments on commit 39f4303

Please sign in to comment.