Skip to content

Commit

Permalink
Merge pull request sfackler#370 from Lorfdail/master
Browse files Browse the repository at this point in the history
Handle non unix case in poll_start of PollConnect
  • Loading branch information
sfackler authored Aug 25, 2018
2 parents 4eecb59 + d6fd28d commit 12546ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tokio-postgres/src/proto/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ impl PollConnect for Connect {
params: state.params,
tls: state.tls,
})
}
},
#[cfg(not(unix))]
Host::Unix(_) => {
Err(Error::connect(io::Error::new(
io::ErrorKind::Other,
"unix sockets are not supported on this platform",
)))
},
}
}

Expand Down

0 comments on commit 12546ec

Please sign in to comment.