-
Notifications
You must be signed in to change notification settings - Fork 6
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 Hyper 1 #177
Upgrade to Hyper 1 #177
Conversation
Generate changelog in
|
@@ -1,212 +0,0 @@ | |||
// Copyright 2020 Palantir Technologies, Inc. |
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.
This was just dead code
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.
Approving with a couple comments
loop { | ||
match ready!(this.body.as_mut().poll_frame(cx)) | ||
.transpose() | ||
.map_err(Error::internal_safe)? | ||
{ | ||
Some(frame) => { | ||
if let Ok(data) = frame.into_data() { | ||
return Poll::Ready(Some(Ok(data))); | ||
} | ||
} | ||
None => return Poll::Ready(None), | ||
} | ||
} |
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.
Should we have some delay in this loop?
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 poll_frame is going out to the network so we should be good.
conjure-runtime/src/body.rs
Outdated
if self.done { | ||
true | ||
} else { | ||
self.body.is_end_stream() |
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.
nit: self.done || self.body.is_end_stream()
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.
Fixed!
Invalidated by push of 93b50f0
Needs a re-+1 |
Also bump rustls.