File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ pub struct ClientOptions {
6565 /// or `http_proxy` if that one exists.
6666 pub https_proxy : Option < Cow < ' static , str > > ,
6767 /// The timeout on client drop for draining events.
68- pub drop_drain_timeout : Option < Duration > ,
68+ pub shutdown_timeout : Option < Duration > ,
6969}
7070
7171impl Default for ClientOptions {
@@ -90,7 +90,7 @@ impl Default for ClientOptions {
9090 . map ( Cow :: Owned )
9191 . or_else ( || env:: var ( "HTTPS_PROXY" ) . ok ( ) . map ( Cow :: Owned ) )
9292 . or_else ( || env:: var ( "http_proxy" ) . ok ( ) . map ( Cow :: Owned ) ) ,
93- drop_drain_timeout : Some ( Duration :: from_secs ( 2 ) ) ,
93+ shutdown_timeout : Some ( Duration :: from_secs ( 2 ) ) ,
9494 }
9595 }
9696}
@@ -479,7 +479,7 @@ impl ClientInitGuard {
479479impl Drop for ClientInitGuard {
480480 fn drop ( & mut self ) {
481481 if let Some ( ref client) = self . 0 {
482- client. drain_events ( client. options . drop_drain_timeout ) ;
482+ client. drain_events ( client. options . shutdown_timeout ) ;
483483 }
484484 }
485485}
You can’t perform that action at this time.
0 commit comments