-
Notifications
You must be signed in to change notification settings - Fork 13
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
Upgrade to support hyper1 #14
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #14 +/- ##
==========================================
- Coverage 91.24% 84.40% -6.85%
==========================================
Files 1 1
Lines 377 404 +27
==========================================
- Hits 344 341 -3
- Misses 33 63 +30 ☔ View full report in Codecov by Sentry. |
Cargo.toml
Outdated
|
||
http = "1" | ||
tower-service = "0.3" | ||
hyper-util = { version = "0.1", features = ["tokio"]} |
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.
hyper-util = { version = "0.1", features = ["tokio"]} | |
hyper-util = { version = "0.1", features = ["tokio"] } |
src/lib.rs
Outdated
@@ -160,7 +162,7 @@ where | |||
.call(self.proxy_addr) | |||
.await | |||
.map_err(Into::<BoxedError>::into)?; | |||
let mut buf_stream = BufStream::new(stream); // fixes issue #3 | |||
let mut buf_stream = TokioIo::new(stream); // fixes issue #3 |
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.
let mut buf_stream = TokioIo::new(stream); // fixes issue #3 | |
let mut buf_stream = BufStream::new(TokioIo::new(stream)); // fixes issue #3 |
Cargo.toml
Outdated
@@ -16,24 +16,27 @@ edition = "2018" | |||
github-actions = { repository = "https://github.com/ark0f/hyper-socks2", workflow = "CI" } | |||
|
|||
[dependencies] | |||
hyper = "0.14" | |||
hyper = { version = "1", features = ["server", "http1", "client"] } |
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.
It looks like we don't need any of these features
Cargo.toml
Outdated
tokio = { version = "1.0", features = ["macros"] } | ||
hyper-util = { version = "0.1", features = ["http1", "client", "client-legacy"]} |
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.
hyper-util = { version = "0.1", features = ["http1", "client", "client-legacy"]} | |
hyper-util = { version = "0.1", features = ["http1", "client", "client-legacy"] } |
Thanks for the review. I think I resolved all comments. |
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.
Thank you for contribution
Closes #13