parent
30bd89c524
commit
e155af6419
@ -30,6 +30,7 @@ pub(crate) async fn connect_socket(
|
|||||||
}
|
}
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
Host::Unix(path) => {
|
Host::Unix(path) => {
|
||||||
|
let path = path.join(format!(".s.PGSQL.{}", port));
|
||||||
let socket = connect_with_timeout(UnixStream::connect(path), connect_timeout).await?;
|
let socket = connect_with_timeout(UnixStream::connect(path), connect_timeout).await?;
|
||||||
Ok(Socket::new_unix(socket))
|
Ok(Socket::new_unix(socket))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user