Skip to content

Commit 12546ec

Browse files
authored
Merge pull request sfackler#370 from Lorfdail/master
Handle non unix case in poll_start of PollConnect
2 parents 4eecb59 + d6fd28d commit 12546ec

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tokio-postgres/src/proto/connect.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,14 @@ impl PollConnect for Connect {
110110
params: state.params,
111111
tls: state.tls,
112112
})
113-
}
113+
},
114+
#[cfg(not(unix))]
115+
Host::Unix(_) => {
116+
Err(Error::connect(io::Error::new(
117+
io::ErrorKind::Other,
118+
"unix sockets are not supported on this platform",
119+
)))
120+
},
114121
}
115122
}
116123

0 commit comments

Comments
 (0)