use correct error type

This commit is contained in:
Paul Hemberger 2023-03-27 16:47:58 -04:00
parent a9967c05ff
commit 62a443222c

View File

@ -42,7 +42,7 @@ pub(crate) async fn connect_socket(
{ {
sock_ref sock_ref
.set_tcp_user_timeout(tcp_user_timeout) .set_tcp_user_timeout(tcp_user_timeout)
.map_err(Error::timeout)?; .map_err(Error::connect)?;
} }
if let Some(keepalive_config) = keepalive_config { if let Some(keepalive_config) = keepalive_config {