fix error

This commit is contained in:
2024-06-29 14:10:47 -04:00
Unverified
parent 422109b4b0
commit 07e23cd841

View File

@@ -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.