mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-09-07 21:21:22 +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]
|
||||
async fn main() -> Result<(), Error> {
|
||||
env_logger::init();
|
||||
Lazy::force(&OWNER);
|
||||
Lazy::force(&API);
|
||||
Lazy::force(&TRILIUM_TOKEN);
|
||||
task::spawn_blocking(|| {
|
||||
env_logger::init();
|
||||
Lazy::force(&OWNER);
|
||||
Lazy::force(&API);
|
||||
Lazy::force(&TRILIUM_TOKEN);
|
||||
}).await.unwrap();
|
||||
println!("Init done!");
|
||||
|
||||
task::spawn(task_alerts());
|
||||
|
Loading…
Reference in New Issue
Block a user