From 2337d14ecffcba33f2c2175d3c254e478c73fae8 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 7 Dec 2021 14:05:41 -0500 Subject: [PATCH] Make ClientTimeoutConfig members crate-private. We shouldn't have pub members in these config objects. --- crates/arti-client/src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/arti-client/src/config.rs b/crates/arti-client/src/config.rs index 35062ccbc..70900883c 100644 --- a/crates/arti-client/src/config.rs +++ b/crates/arti-client/src/config.rs @@ -59,18 +59,18 @@ pub struct ClientTimeoutConfig { /// to a host? #[builder(default = "default_connect_timeout()")] #[serde(with = "humantime_serde", default = "default_connect_timeout")] - pub connect_timeout: Duration, + pub(crate) connect_timeout: Duration, /// How long should we wait before timing out when resolving a DNS record? #[builder(default = "default_dns_resolve_timeout()")] #[serde(with = "humantime_serde", default = "default_dns_resolve_timeout")] - pub resolve_timeout: Duration, + pub(crate) resolve_timeout: Duration, /// How long should we wait before timing out when resolving a DNS /// PTR record? #[builder(default = "default_dns_resolve_ptr_timeout()")] #[serde(with = "humantime_serde", default = "default_dns_resolve_ptr_timeout")] - pub resolve_ptr_timeout: Duration, + pub(crate) resolve_ptr_timeout: Duration, } // NOTE: it seems that `unwrap` may be safe because of builder defaults