mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
main spawns the REAL main
This commit is contained in:
parent
5a48c10cd9
commit
1b7f5a10c0
8 changed files with 122 additions and 90 deletions
|
@ -121,6 +121,10 @@ async fn get_cert(path: PathBuf) -> Result<SigningKey, Box<dyn Error + Sync + Se
|
|||
|
||||
#[tokio::main(flavor = "multi_thread")]
|
||||
async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
|
||||
tokio::spawn(real_main()).await?
|
||||
}
|
||||
|
||||
async fn real_main() -> Result<(), Box<dyn Error + Send + Sync>> {
|
||||
#[cfg(feature = "tokio-console")]
|
||||
console_subscriber::init();
|
||||
let opts = Cli::parse();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue