-
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(kad): remove deprecated Config::set_connection_idle_timeout
#4659
feat(kad): remove deprecated Config::set_connection_idle_timeout
#4659
Conversation
To fix these tests, we need to change the following lines of code: rust-libp2p/protocols/kad/src/behaviour.rs Lines 1911 to 1929 in c91ecbc
What happens here is that after the connection is established, we tell the This refactoring is backwards compatible so we can do that together with the deprecation of PR for Let me know if that makes sense or you need more info :) |
I try to add preload_new_handler for Behaviour, but tests seems not going well, could you give me some hints? |
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.
Found two things so far, see if those fix the tests :)
Big Thanks, I found that we have to set |
This pull request has merge conflicts. Could you please resolve them @leonzchang? 🙏 |
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.
Great! I left some inline comments.
…ed_events in preload_new_handler
864943a
to
2d58cbf
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.
Looks good, thank you!
This comment was marked as resolved.
This comment was marked as resolved.
This pull request has merge conflicts. Could you please resolve them @leonzchang? 🙏 |
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.
Nice work, thank you!
KeepAlive::Until
Config::set_connection_idle_timeout
This pull request has merge conflicts. Could you please resolve them @leonzchang? 🙏 |
Description
Related: #3844.
Related: #4656.
Notes & open questions
some tests need to be fixed, after
KeepAlive::Until
being removed.Change checklist