minor resructure
This commit is contained in:
parent
e4500cab78
commit
11d37c5b73
@ -258,7 +258,10 @@ fn main() -> anyhow::Result<()> {
|
|||||||
tokio::runtime::Builder::new_multi_thread()
|
tokio::runtime::Builder::new_multi_thread()
|
||||||
.enable_all()
|
.enable_all()
|
||||||
.build()?
|
.build()?
|
||||||
.block_on(async move {
|
.block_on(tokio_main(config))
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn tokio_main(config: Arc<Config>) -> anyhow::Result<()> {
|
||||||
setup_tracing(&config);
|
setup_tracing(&config);
|
||||||
|
|
||||||
let cache_path = PathBuf::from("cache.json");
|
let cache_path = PathBuf::from("cache.json");
|
||||||
@ -300,7 +303,6 @@ fn main() -> anyhow::Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
|
Loading…
Reference in New Issue
Block a user