Ready to implement sync client manager

This commit is contained in:
2025-02-11 22:20:23 +01:00
parent bb1e412d36
commit 17e086b43c
6 changed files with 39 additions and 20 deletions

View File

@@ -4,7 +4,7 @@ use actix_session::{storage::RedisSessionStore, SessionMiddleware};
use actix_web::cookie::Key;
use actix_web::{web, App, HttpServer};
use matrix_gateway::app_config::AppConfig;
use matrix_gateway::server::api::ws::WsMessage;
use matrix_gateway::broadcast_messages::BroadcastMessage;
use matrix_gateway::server::{api, web_ui};
use matrix_gateway::user::UserConfig;
@@ -22,7 +22,9 @@ async fn main() -> std::io::Result<()> {
.await
.expect("Failed to connect to Redis!");
let (ws_tx, _) = tokio::sync::broadcast::channel::<WsMessage>(16);
let (ws_tx, _) = tokio::sync::broadcast::channel::<BroadcastMessage>(16);
// TODO : spawn a tokio task to launch sync client
log::info!(
"Starting to listen on {} for {}",