Skip to content

Conversation

@keelerm84
Copy link
Member

No description provided.

@keelerm84 keelerm84 requested a review from a team as a code owner January 7, 2026 17:28
pub async fn new(
create_instance_params: CreateInstanceParams,
connector: HttpsConnector,
streaming_https_connector: StreamingHttpsConnector,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The event source and the SDK both relied on hyper pre-1.0. Since the SDK still relies on it, we have a couple of different types we have to juggle. As a result, we have our connector, and then our streaming specific connector.

I plan on updating the hyper usage for the rest of the library next, which should remove this silliness. But it's needed for now.

type HttpsConnector = hyper_tls::HttpsConnector<HttpConnector>;
#[cfg(feature = "tls")]
type StreamingHttpsConnector =
hyper1_tls::HttpsConnector<hyper_util::client::legacy::connect::HttpConnector>;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the 1 in hyper1_tls.

hyper = { version = "0.14.19", features = ["client"] }
hyper-rustls = { version = "0.24.1" , optional = true, features = ["http2"]}
hyper-tls = { version = "0.5.0", optional = true }
hyper1-tls = { package = "hyper-tls", version = "0.6.0", optional = true }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kinyoklion turns out you can specify which version you want based on a feature, and this is me doing it. 😄

data-encoding = "2.3.2"
eventsource-client = { version = "0.16.0", default-features = false }
# eventsource-client = { version = "0.16.0", default-features = false }
eventsource-client = { git = "https://github.com/launchdarkly/rust-eventsource-client", branch = "mk/sdk-1726/hyper-transport" }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will update these once we decide everything is good enough to cut a release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants