Skip to content
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

feat(lib): update to http 1.0 #3406

Merged
merged 1 commit into from
Nov 15, 2023
Merged

feat(lib): update to http 1.0 #3406

merged 1 commit into from
Nov 15, 2023

Conversation

seanmonstar
Copy link
Member

Updates dependencies http and http-body to 1.0.

To do so, implements Clone for OnUpgrade.

BREAKING CHANGE: Upgrade to http 1.0.

@seanmonstar seanmonstar force-pushed the on-upgrade-clone branch 2 times, most recently from d08cf60 to 5cbe276 Compare November 15, 2023 17:13
Updates dependencies `http` and `http-body` to 1.0.

To do so, implements `Clone` for `OnUpgrade`.

BREAKING CHANGE: Upgrade to `http` 1.0.
Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

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

LGTM

pub struct OnUpgrade {
rx: Option<oneshot::Receiver<crate::Result<Upgraded>>>,
rx: Option<Arc<Mutex<oneshot::Receiver<crate::Result<Upgraded>>>>>,
Copy link
Member Author

Choose a reason for hiding this comment

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

I'd love this to be optimized a bit, to not need the extra arc/mutex. But it works for now.

@seanmonstar seanmonstar merged commit 899e92a into master Nov 15, 2023
19 checks passed
@seanmonstar seanmonstar deleted the on-upgrade-clone branch November 15, 2023 17:22
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