forked from jmug/stoatchat
Remove old notif code; uncommited changes.
This commit is contained in:
15
src/main.rs
15
src/main.rs
@@ -10,14 +10,12 @@ extern crate bitfield;
|
||||
extern crate lazy_static;
|
||||
|
||||
pub mod database;
|
||||
pub mod notifications;
|
||||
pub mod pubsub;
|
||||
pub mod routes;
|
||||
pub mod util;
|
||||
|
||||
use log::info;
|
||||
use rocket_cors::AllowedOrigins;
|
||||
use std::thread;
|
||||
|
||||
fn main() {
|
||||
dotenv::dotenv().ok();
|
||||
@@ -28,19 +26,6 @@ fn main() {
|
||||
util::variables::preflight_checks();
|
||||
database::connect();
|
||||
|
||||
// ! START OLD NOTIF CODE
|
||||
notifications::start_worker();
|
||||
|
||||
thread::spawn(|| {
|
||||
notifications::pubsub::launch_subscriber();
|
||||
});
|
||||
|
||||
notifications::state::init();
|
||||
/*thread::spawn(|| {
|
||||
notifications::ws::launch_server();
|
||||
});*/
|
||||
// ! END OLD NOTIF CODE
|
||||
|
||||
pubsub::hive::init_hive();
|
||||
pubsub::websocket::launch_server();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user