mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix errors after rebase
This commit is contained in:
parent
29035dd13e
commit
4edab50827
@ -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?;
|
||||
|
||||
@ -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?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user