Skip to content

Commit 62a4432

Browse files
committed
use correct error type
1 parent a9967c0 commit 62a4432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio-postgres/src/connect_socket.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub(crate) async fn connect_socket(
4242
{
4343
sock_ref
4444
.set_tcp_user_timeout(tcp_user_timeout)
45-
.map_err(Error::timeout)?;
45+
.map_err(Error::connect)?;
4646
}
4747

4848
if let Some(keepalive_config) = keepalive_config {

0 commit comments

Comments
 (0)