File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 5
5
- Remove ` Rpc ` from the public API.
6
6
See [ PR 6091] ( https://github.com/libp2p/rust-libp2p/pull/6091 )
7
7
8
+ - Fix ` unsubscribe_backoff ` expecting number of seconds instead of ` Duration `
9
+ See [ PR 6124] ( https://github.com/libp2p/rust-libp2p/pull/6124 )
10
+
8
11
## 0.49.2
9
12
10
13
- Relax ` Behaviour::with_metrics ` requirements, do not require DataTransform and TopicSubscriptionFilter to also impl Default
Original file line number Diff line number Diff line change @@ -2185,7 +2185,7 @@ fn test_unsubscribe_backoff() {
2185
2185
. backoff_slack ( 1 )
2186
2186
// ensure a prune_backoff > unsubscribe_backoff
2187
2187
. prune_backoff ( Duration :: from_secs ( 5 ) )
2188
- . unsubscribe_backoff ( 1 )
2188
+ . unsubscribe_backoff ( Duration :: from_secs ( 1 ) )
2189
2189
. heartbeat_interval ( HEARTBEAT_INTERVAL )
2190
2190
. build ( )
2191
2191
. unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -858,8 +858,8 @@ impl ConfigBuilder {
858
858
/// This is how long to wait before resubscribing to the topic. A short backoff period in case
859
859
/// of an unsubscribe event allows reaching a healthy mesh in a more timely manner. The default
860
860
/// is 10 seconds.
861
- pub fn unsubscribe_backoff ( & mut self , unsubscribe_backoff : u64 ) -> & mut Self {
862
- self . config . unsubscribe_backoff = Duration :: from_secs ( unsubscribe_backoff) ;
861
+ pub fn unsubscribe_backoff ( & mut self , unsubscribe_backoff : Duration ) -> & mut Self {
862
+ self . config . unsubscribe_backoff = unsubscribe_backoff;
863
863
self
864
864
}
865
865
You can’t perform that action at this time.
0 commit comments