mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
Reimplement connection pool on top of crossbeam
This commit is contained in:
@@ -363,7 +363,7 @@ impl Sql {
|
||||
pub(crate) async fn get_conn(&self) -> Result<PooledConnection> {
|
||||
let lock = self.pool.read().await;
|
||||
let pool = lock.as_ref().context("no SQL connection")?;
|
||||
let conn = pool.get();
|
||||
let conn = pool.get().await;
|
||||
|
||||
Ok(conn)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user