diff --git a/server/src/main.rs b/server/src/main.rs index 13f7c47..dbd5b2c 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -78,7 +78,7 @@ async fn main() -> anyhow::Result<()> { // serve is generated by the service attribute. It takes as input any type implementing // the generated World trait. .map(|channel| { - let server = RealmChatServer::new(channel.transport().peer_addr().unwrap(), db.clone()); + let server = RealmChatServer::new(channel.transport().peer_addr().unwrap(), db_pool.clone()); channel.execute(server.serve()).for_each(spawn) }) // Max 10 channels.