fix errors after rebase

This commit is contained in:
Austin Bonander 2025-08-29 12:04:47 -07:00
parent 29035dd13e
commit 4edab50827
2 changed files with 2 additions and 4 deletions

View File

@ -109,8 +109,7 @@ async fn test_context(args: &TestArgs) -> Result<TestContext<MySql>, Error> {
.after_release(|_conn, _| Box::pin(async move { Ok(false) }))
.connect_lazy_with(master_opts.clone());
let master_pool = MASTER_POOL
.try_insert(pool)
let master_pool = once_lock_try_insert_polyfill(&MASTER_POOL, pool)
.unwrap_or_else(|(existing, _pool)| existing);
let mut conn = master_pool.acquire().await?;

View File

@ -102,8 +102,7 @@ async fn test_context(args: &TestArgs) -> Result<TestContext<Postgres>, Error> {
.after_release(|_conn, _| Box::pin(async move { Ok(false) }))
.connect_lazy_with(master_opts.clone());
let master_pool = MASTER_POOL
.try_insert(pool)
let master_pool = once_lock_try_insert_polyfill(&MASTER_POOL, pool)
.unwrap_or_else(|(existing, _pool)| existing);
let mut conn = master_pool.acquire().await?;