mirror of
https://git.alemi.dev/guestbook.rs.git
synced 2024-12-18 18:54:51 +01:00
fix: enable io and time on tokio rt
This commit is contained in:
parent
051ff967fc
commit
319a7ab890
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue