mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-11-22 02:44:58 +00:00
Fix tokio assertion
This commit is contained in:
parent
974d544db8
commit
5f3966c62e
@ -16,10 +16,12 @@ use telegram_notes_bot::*;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Error> {
|
||||
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