-
Notifications
You must be signed in to change notification settings - Fork 19
feat!: Update StreamingDataSourceBuilder to require HttpTransport #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/3.x
Are you sure you want to change the base?
Conversation
| pub async fn new( | ||
| create_instance_params: CreateInstanceParams, | ||
| connector: HttpsConnector, | ||
| streaming_https_connector: StreamingHttpsConnector, |
There was a problem hiding this comment.
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>; |
There was a problem hiding this comment.
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 } |
There was a problem hiding this comment.
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" } |
There was a problem hiding this comment.
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.
No description provided.