fix(core): avoid holding pool registry locks during db io

This commit is contained in:
Guoyu Su authored and GitHub committed 2026-09-03 01:53:42 +08:00
1 parent 616c0daf25
commit d6fc1fe52c
30 files changed
+1436 -1110

No files matched your search

+1 -1
View File
@@ -147,7 +147,7 @@ async fn collect_runtime_seeds(state: &AppState) -> Vec<RuntimeSeed> {
}
let configs = state.configs.read().await;
let connections = state.connections.read().await;
let connections = state.connection_pools_snapshot().await;
for (pool_key, pool) in connections.iter() {
match pool {
PoolKind::Agent(client) => {