Skip to content

Commit 4510711

Browse files
committed
ref: Rename the drop timeout to shutdown_timeout
1 parent e521a46 commit 4510711

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

7171
impl 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 {
479479
impl 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
}

0 commit comments

Comments
 (0)