Fix tokio assertion

This commit is contained in:
FliegendeWurst 2021-09-28 21:28:10 +02:00
parent 974d544db8
commit 5f3966c62e

View File

@ -16,10 +16,12 @@ use telegram_notes_bot::*;
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), Error> { async fn main() -> Result<(), Error> {
env_logger::init(); task::spawn_blocking(|| {
Lazy::force(&OWNER); env_logger::init();
Lazy::force(&API); Lazy::force(&OWNER);
Lazy::force(&TRILIUM_TOKEN); Lazy::force(&API);
Lazy::force(&TRILIUM_TOKEN);
}).await.unwrap();
println!("Init done!"); println!("Init done!");
task::spawn(task_alerts()); task::spawn(task_alerts());