Skip to content

Commit

Permalink
fix: Remove re-export of hyper_rustls types (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Nov 14, 2023
1 parent 8f11f67 commit 7a35212
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions eventsource-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use tokio::{
use crate::config::ReconnectOptions;
use crate::error::{Error, Result};

pub use hyper::client::HttpConnector;
use hyper::client::HttpConnector;
use hyper_timeout::TimeoutConnector;

use crate::event_parser::EventParser;
Expand All @@ -40,11 +40,7 @@ use crate::retry::{BackoffRetry, RetryStrategy};
use std::error::Error as StdError;

#[cfg(feature = "rustls")]
use hyper_rustls::HttpsConnector as RustlsConnector;
#[cfg(feature = "rustls")]
pub use hyper_rustls::HttpsConnectorBuilder;
#[cfg(feature = "rustls")]
pub type HttpsConnector = RustlsConnector<HttpConnector>;
use hyper_rustls::HttpsConnectorBuilder;

type BoxError = Box<dyn std::error::Error + Send + Sync>;

Expand Down

0 comments on commit 7a35212

Please sign in to comment.