This commit is contained in:
Anna Khanova
2023-11-16 13:14:32 +01:00
committed by Arseny Sher
parent 517782ab94
commit 67e791c4ec

View File

@@ -553,7 +553,10 @@ pub struct Discard<'a> {
}
impl Client {
pub async fn new(mut inner: ClientInner, pool: Option<(ConnInfo, Arc<GlobalConnPool>)>) -> Self {
pub async fn new(
mut inner: ClientInner,
pool: Option<(ConnInfo, Arc<GlobalConnPool>)>,
) -> Self {
Self {
conn_id: inner.conn_id,
pid: inner.get_pid().await.unwrap_or(-1),