From 411824ad50f991ce444fdb9fb061852ff5bf3eb2 Mon Sep 17 00:00:00 2001 From: Leonz Date: Tue, 17 Oct 2023 15:46:19 +0800 Subject: [PATCH] feat(kad): deprecate `Config::set_connection_idle_timeout` Related: #3844. Related: #4659. Pull-Request: #4675. --- protocols/kad/CHANGELOG.md | 3 ++ protocols/kad/src/behaviour.rs | 69 ++++++++++++++++++---------------- 2 files changed, 40 insertions(+), 32 deletions(-) diff --git a/protocols/kad/CHANGELOG.md b/protocols/kad/CHANGELOG.md index 11510e3e963..80d0feb6829 100644 --- a/protocols/kad/CHANGELOG.md +++ b/protocols/kad/CHANGELOG.md @@ -6,9 +6,12 @@ See [PR 4639](https://github.com/libp2p/rust-libp2p/pull/4639). - Re-export `NodeStatus`. See [PR 4645]. +- Deprecate `kad::Config::set_connection_idle_timeout` in favor of `SwarmBuilder::idle_connection_timeout`. + See [PR 4675]. [PR 4547]: https://github.com/libp2p/rust-libp2p/pull/4547 [PR 4645]: https://github.com/libp2p/rust-libp2p/pull/4645 +[PR 4675]: https://github.com/libp2p/rust-libp2p/pull/4675