This commit is contained in:
Steven Fackler 2019-01-01 12:20:41 -08:00
parent 8dcad81224
commit 9e25e47fe0

View File

@ -6,8 +6,6 @@ use lazy_static::lazy_static;
use state_machine_future::{transition, RentToOwn, StateMachineFuture};
use std::io;
use std::net::{SocketAddr, ToSocketAddrs};
#[cfg(unix)]
use std::path::Path;
use std::time::Instant;
use std::vec;
use tokio_tcp::TcpStream;
@ -111,7 +109,7 @@ where
}
#[cfg(unix)]
Host::Unix(host) => {
let path = Path::new(host).join(format!(".s.PGSQL.{}", port));
let path = host.join(format!(".s.PGSQL.{}", port));
transition!(ConnectingUnix {
future: UnixStream::connect(path),
timeout,