fix(backend): pg connection caching

This commit is contained in:
HugoCasa
2025-10-07 17:49:12 +02:00
parent 50a6106436
commit 54a2549880

View File

@@ -289,6 +289,7 @@ pub async fn do_postgresql(
tracing::error!("connection error: {}", e);
}
});
drop(mtex);
(Some((client, handle)), None)
} else {
tracing::info!("Creating new connection");
@@ -307,6 +308,7 @@ pub async fn do_postgresql(
tracing::error!("connection error: {}", e);
}
});
drop(mtex);
(Some((client, handle)), None)
};