mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-11-22 10:54:57 +00:00
Fix tokio assertion
This commit is contained in:
parent
974d544db8
commit
5f3966c62e
10
src/main.rs
10
src/main.rs
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user