Skip to content

Commit c7b97a6

Browse files
committed
fix
1 parent 378e98c commit c7b97a6

File tree

1 file changed

+4
-2
lines changed
  • opentelemetry-otlp/src/exporter/http

1 file changed

+4
-2
lines changed

opentelemetry-otlp/src/exporter/http/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ impl Default for HttpConfig {
7171
not(feature = "reqwest-blocking-client"),
7272
feature = "hyper-client"
7373
))]
74-
let default_client =
75-
Some(Arc::new(HyperClient::new(Duration::from_secs(10), None)) as Arc<dyn HttpClient>);
74+
let default_client = Some(Arc::new(HyperClient::with_default_connector(
75+
Duration::from_secs(10),
76+
None,
77+
)) as Arc<dyn HttpClient>);
7678
#[cfg(all(
7779
not(feature = "reqwest-client"),
7880
not(feature = "reqwest-blocking-client"),

0 commit comments

Comments
 (0)