-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix: upgrade to libp2p 0.53 #205
Conversation
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 noticed that the test_dht
test fails but I didn't investigate. That was the only one with --no-fail-fast
. Otherwise a minor comment/question.
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.
LGTM apart from a minor typo and a question
recon/src/libp2p/handler.rs
Outdated
self.keep_alive | ||
fn connection_keep_alive(&self) -> bool { | ||
// Only keep the connection alive if we are not idle | ||
!matches!(&self.state, State::Idle) | ||
} | ||
|
||
// TODO(WS1-1345): Remove uses of ConnectionHandler::Error |
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.
WS1-1345 is also taken care of in this PR, right?
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 does, I have removed this comment and others like it. Thanks
Libp2p has three major features we want: 1. Stable support for QUIC 2. Full tracing support 3. Uses prometheus_client 0.22, this enables use to use tokio-metrics In order to upgrade we needed to address the follow major breaking changes: * KeepAlive is now a boolean signal (bitswap keep alive logic is now much simpler) * Supported Protocols are only known per connection, we now hard code the list for diagnostic reasons There are a few other minor breaking changes but did not affect our code much.
d74fc11
to
e6b3fa0
Compare
Libp2p has three major features we want:
In order to upgrade we needed to address the follow major breaking changes:
There are a few other minor breaking changes but did not affect our code much.
Closes WS1-1291
Closes WS1-1345