mirror of
https://git.alemi.dev/guestbook.rs.git
synced 2024-12-19 02:54:52 +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() {
|
fn main() {
|
||||||
tokio::runtime::Builder::new_current_thread()
|
tokio::runtime::Builder::new_current_thread()
|
||||||
|
.enable_time()
|
||||||
|
.enable_io()
|
||||||
.build().expect("could not create tokio runtime")
|
.build().expect("could not create tokio runtime")
|
||||||
.block_on(async {
|
.block_on(async {
|
||||||
launch().await
|
launch().await
|
||||||
|
|
Loading…
Reference in a new issue