Skip to content

Commit d6fd28d

Browse files
committed
Allow to build on Windows
Someone forgot to handle the non unix case for this match which prevented a build on windows. A similar line already existed here in line 51 to 56. https://github.com/sfackler/rust-postgres/blob/5ad78500095c0a9a59533b9164f46edd23cb9e1b/tokio-postgres/src/stream.rs
1 parent 4eecb59 commit d6fd28d

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)