forked from jmug/stoatchat
@@ -17,6 +17,7 @@ extern crate ctrlc;
|
||||
pub mod database;
|
||||
pub mod notifications;
|
||||
pub mod routes;
|
||||
pub mod redis;
|
||||
pub mod util;
|
||||
pub mod version;
|
||||
|
||||
@@ -47,6 +48,7 @@ async fn main() {
|
||||
|
||||
util::variables::preflight_checks();
|
||||
database::connect().await;
|
||||
redis::connect().await;
|
||||
notifications::hive::init_hive().await;
|
||||
|
||||
ctrlc::set_handler(move || {
|
||||
@@ -56,7 +58,7 @@ async fn main() {
|
||||
.expect("Error setting Ctrl-C handler");
|
||||
|
||||
let web_task = task::spawn(launch_web());
|
||||
let hive_task = task::spawn(notifications::hive::listen());
|
||||
let hive_task = task::spawn_local(notifications::hive::listen());
|
||||
|
||||
join!(
|
||||
web_task,
|
||||
|
||||
Reference in New Issue
Block a user