File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -144,12 +144,13 @@ impl NetConnection for socket2::Socket {
144
144
}
145
145
146
146
#[ cfg( feature = "nonblocking" ) ]
147
- fn connect_nonblocking ( addr : Self :: Addr , timeout : Duration ) -> io:: Result < Self > {
147
+ fn connect_nonblocking ( addr : Self :: Addr , _timeout : Duration ) -> io:: Result < Self > {
148
148
let addr = addr. to_socket_addrs ( ) ?. next ( ) . ok_or ( io:: ErrorKind :: AddrNotAvailable ) ?;
149
149
let socket =
150
150
socket2:: Socket :: new ( socket2:: Domain :: for_address ( addr) , socket2:: Type :: STREAM , None ) ?;
151
151
socket. set_nonblocking ( true ) ?;
152
- match socket2:: Socket :: connect_timeout ( & socket, & addr. into ( ) , timeout) {
152
+
153
+ match socket2:: Socket :: connect ( & socket, & addr. into ( ) ) {
153
154
Ok ( ( ) ) => {
154
155
#[ cfg( feature = "log" ) ]
155
156
log:: debug!( target: "netservices" , "Connected to {}" , addr) ;
You can’t perform that action at this time.
0 commit comments