feat: make event loop multithreaded
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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<()>,
|
||||
|
||||
Reference in New Issue
Block a user