This commit is contained in:
Anna Khanova
2023-11-16 13:14:32 +01:00
parent fb7d2939e1
commit 5ec4de05c9
+4 -1
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),