Fix excessive delay before clearing stale room data

Co-authored-by: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Max Brunsfeld 2022-12-13 11:17:20 -08:00
parent 5218a2f966
commit 45bfcfc3b8
4 changed files with 16 additions and 10 deletions

View file

@ -65,6 +65,12 @@ async fn main() -> Result<()> {
axum::Server::from_tcp(listener)?
.serve(app.into_make_service_with_connect_info::<SocketAddr>())
.with_graceful_shutdown(async move {
tokio::signal::ctrl_c()
.await
.expect("failed to listen for interrupt signal");
rpc_server.teardown();
})
.await?;
}
_ => {