-
Notifications
You must be signed in to change notification settings - Fork 1k
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: update libp2p-server and metric example to use hyper 1.0 version #5038
Conversation
65ca552
to
ec87fc3
Compare
ec87fc3
to
d25a5f8
Compare
This pull request has merge conflicts. Could you please resolve them @getong? 🙏 |
a6e7322
to
75cff0c
Compare
This pull request has merge conflicts. Could you please resolve them @getong? 🙏 |
75cff0c
to
619b8f8
Compare
Sorry for the delay, I should have some time mid-January to review this. |
How about enabling ci first, I'd like to see what ci runs here. |
This pull request has merge conflicts. Could you please resolve them @getong? 🙏 |
619b8f8
to
63e5333
Compare
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! I've left some feedback :)
examples/metrics/src/http_service.rs
Outdated
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 seems that this got even more verbose with the update to hyper
1.0. Can we perhaps simplify this by migrating it to a higher-level library like axum?
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.
Axum is using hyper under the hood, but axum is still not reached 1.0, and hyper now is stable to be used as 1.0.
I think it does not need to change it.
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.
We are using many library that are < 1.0. I am more concerned with the boilerplate around setting up an HTTP services with just using hyper
. As mentioned above, with the update to 1.0
, it seems that that is even more verbose than pre 1.0.
We already use axum
in other places. Would you be willing to migrate libp2p-server
and metric-example
to use latest axum
(which I believe already uses hyper
1.0 under the hood).
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.
I have no time to fix it by using axum.
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.
@drHuangMHT do you wanna give this a try with axum
?
This pull request has merge conflicts. Could you please resolve them @getong? 🙏 |
63e5333
to
be617aa
Compare
friendly ping @getong |
3eecb6a
to
5e7d79b
Compare
update hyper version to 1.0 in libp2p-server
5e7d79b
to
817fb8b
Compare
Quite a long time, with small change updated now. |
Description
Notes & open questions
Change checklist