Reimplement connection pool on top of crossbeam

This commit is contained in:
link2xt
2023-02-19 01:08:17 +00:00
parent e88f21c010
commit f2b05ccc29
4 changed files with 18 additions and 18 deletions

View File

@@ -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)
}