fix: enable io and time on tokio rt

This commit is contained in:
əlemi 2024-01-04 03:40:59 +01:00
parent 051ff967fc
commit 319a7ab890
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -161,6 +161,8 @@ async fn launch() {
fn main() {
tokio::runtime::Builder::new_current_thread()
.enable_time()
.enable_io()
.build().expect("could not create tokio runtime")
.block_on(async {
launch().await