Fix unix socket connection

Closes #491
This commit is contained in:
Steven Fackler 2019-10-03 18:09:10 -07:00
parent 30bd89c524
commit e155af6419

View File

@ -30,6 +30,7 @@ pub(crate) async fn connect_socket(
}
#[cfg(unix)]
Host::Unix(path) => {
let path = path.join(format!(".s.PGSQL.{}", port));
let socket = connect_with_timeout(UnixStream::connect(path), connect_timeout).await?;
Ok(Socket::new_unix(socket))
}