Ref-count Redis pool internals, fix project creation slug/ID collision (#5302)

* Ref-count Redis pool internals, fix project creation slug/ID collision

* cargo sqlx prepare
This commit is contained in:
aecsocket
2026-02-05 05:18:33 +00:00
committed by GitHub
parent 9105a68923
commit b1954be2c7
5 changed files with 16 additions and 32 deletions

View File

@@ -89,7 +89,7 @@ impl TemporaryDatabase {
println!("Migrations complete");
// Gets new Redis pool
let redis_pool = RedisPool::new(Some(temp_database_name.clone()));
let redis_pool = RedisPool::new(temp_database_name.clone());
// Create new meilisearch config
let search_config =
@@ -194,7 +194,7 @@ impl TemporaryDatabase {
pool: pool.clone(),
ro_pool: ReadOnlyPgPool::from(pool.clone()),
database_name: TEMPLATE_DATABASE_NAME.to_string(),
redis_pool: RedisPool::new(Some(name.clone())),
redis_pool: RedisPool::new(name.clone()),
search_config: search::SearchConfig::new(Some(name)),
};
let setup_api =