Don't wait for stale project deletion before listening for connections

This commit is contained in:
Antonio Scandurra 2022-12-14 08:42:34 +01:00
parent 2596fefa04
commit dde6cf596e
3 changed files with 8 additions and 9 deletions

View file

@ -58,7 +58,7 @@ async fn main() -> Result<()> {
.expect("failed to bind TCP listener");
let rpc_server = collab::rpc::Server::new(state.clone(), Executor::Production);
rpc_server.start().await?;
rpc_server.start();
let app = collab::api::routes(rpc_server.clone(), state.clone())
.merge(collab::rpc::routes(rpc_server.clone()))