feat(kad): remove deprecated Config::set_connection_idle_timeout#4659
feat(kad): remove deprecated Config::set_connection_idle_timeout#4659mergify[bot] merged 19 commits intolibp2p:masterfrom
Config::set_connection_idle_timeout#4659Conversation
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? |
thomaseizinger
left a comment
There was a problem hiding this comment.
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? 🙏 |
thomaseizinger
left a comment
There was a problem hiding this comment.
Great! I left some inline comments.
…ed_events in preload_new_handler
864943a to
2d58cbf
Compare
thomaseizinger
left a comment
There was a problem hiding this comment.
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? 🙏 |
thomaseizinger
left a comment
There was a problem hiding this comment.
Nice work, thank you!
KeepAlive::UntilConfig::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::Untilbeing removed.Change checklist