feat: make event loop multithreaded

This commit is contained in:
Nova
2023-01-25 09:17:52 -05:00
parent ac71581db8
commit 8d85460803
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ once_cell = "1.17.0"
parking_lot = "0.12.1"
portable-atomic = {version = "1.0.1", features = ["float", "std"]}
rustc-hash = "1.1.0"
tokio = { version = "1", features = ["rt", "signal"] }
tokio = { version = "1", features = ["rt-multi-thread", "signal"] }
send_wrapper = "0.6.0"
prisma = "0.1.1"
slog = "2.7.0"

View File

@@ -217,7 +217,7 @@ fn main() -> Result<()> {
}
// #[tokio::main]
#[tokio::main(flavor = "current_thread")]
#[tokio::main]
async fn event_loop(
info_sender: oneshot::Sender<EventLoopInfo>,
stop_rx: oneshot::Receiver<()>,