fix(core): avoid holding pool registry locks during db io
This commit is contained in:
1 parent
616c0daf25
commit
d6fc1fe52c
30 files changed
+1436
-1110
No files matched your search
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user