1- use std:: sync:: Arc ;
1+ use std:: { sync:: Arc , time :: Duration } ;
22
33use qos_core:: {
44 client:: SocketClient ,
5- io:: { SocketAddress , StreamPool , TimeVal , TimeValLike } ,
5+ io:: { SocketAddress , StreamPool } ,
66 server:: SocketServerError ,
77 server:: { RequestProcessor , SocketServer } ,
88} ;
@@ -37,7 +37,7 @@ async fn run_echo_server(
3737async fn direct_connect_works ( ) {
3838 let socket_path = "/tmp/async_client_test_direct_connect_works.sock" ;
3939 let socket = SocketAddress :: new_unix ( socket_path) ;
40- let timeout = TimeVal :: milliseconds ( 500 ) ;
40+ let timeout = Duration :: from_millis ( 500 ) ;
4141 let pool = StreamPool :: new ( socket, 1 )
4242 . expect ( "unable to create async pool" )
4343 . shared ( ) ;
@@ -54,7 +54,7 @@ async fn direct_connect_works() {
5454async fn times_out_properly ( ) {
5555 let socket_path = "/tmp/async_client_test_times_out_properly.sock" ;
5656 let socket = SocketAddress :: new_unix ( socket_path) ;
57- let timeout = TimeVal :: milliseconds ( 500 ) ;
57+ let timeout = Duration :: from_millis ( 500 ) ;
5858 let pool = StreamPool :: new ( socket, 1 )
5959 . expect ( "unable to create async pool" )
6060 . shared ( ) ;
@@ -68,7 +68,7 @@ async fn times_out_properly() {
6868async fn repeat_connect_works ( ) {
6969 let socket_path = "/tmp/async_client_test_repeat_connect_works.sock" ;
7070 let socket = SocketAddress :: new_unix ( socket_path) ;
71- let timeout = TimeVal :: milliseconds ( 500 ) ;
71+ let timeout = Duration :: from_millis ( 500 ) ;
7272 let pool = StreamPool :: new ( socket, 1 )
7373 . expect ( "unable to create async pool" )
7474 . shared ( ) ;
0 commit comments