File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 1
1
## 0.50.0
2
2
3
+ - Relax ` Behaviour::with_metrics ` requirements, do not require DataTransform and TopicSubscriptionFilter to also impl Default
4
+ See [ PR XXXX] ( https://github.com/libp2p/rust-libp2p/pull/6097 )
5
+
3
6
- Remove ` Rpc ` from the public API.
4
7
See [ PR 6091] ( https://github.com/libp2p/rust-libp2p/pull/6091 )
5
8
Original file line number Diff line number Diff line change @@ -360,18 +360,6 @@ where
360
360
D :: default ( ) ,
361
361
)
362
362
}
363
-
364
- /// Allow the [`Behaviour`] to also record metrics.
365
- /// Metrics can be evaluated by passing a reference to a [`Registry`].
366
- #[ cfg( feature = "metrics" ) ]
367
- pub fn with_metrics (
368
- mut self ,
369
- metrics_registry : & mut Registry ,
370
- metrics_config : MetricsConfig ,
371
- ) -> Self {
372
- self . metrics = Some ( Metrics :: new ( metrics_registry, metrics_config) ) ;
373
- self
374
- }
375
363
}
376
364
377
365
impl < D , F > Behaviour < D , F >
@@ -469,6 +457,18 @@ where
469
457
gossip_promises : Default :: default ( ) ,
470
458
} )
471
459
}
460
+
461
+ /// Allow the [`Behaviour`] to also record metrics.
462
+ /// Metrics can be evaluated by passing a reference to a [`Registry`].
463
+ #[ cfg( feature = "metrics" ) ]
464
+ pub fn with_metrics (
465
+ mut self ,
466
+ metrics_registry : & mut Registry ,
467
+ metrics_config : MetricsConfig ,
468
+ ) -> Self {
469
+ self . metrics = Some ( Metrics :: new ( metrics_registry, metrics_config) ) ;
470
+ self
471
+ }
472
472
}
473
473
474
474
impl < D , F > Behaviour < D , F >
You can’t perform that action at this time.
0 commit comments