mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 06:51:07 +00:00
move Metrics to utils (#1765)
This commit is contained in:
@@ -76,8 +76,6 @@ impl Subsystem1 {
|
||||
impl<C> Subsystem<C> for Subsystem1
|
||||
where C: SubsystemContext<Message=CandidateBackingMessage>
|
||||
{
|
||||
type Metrics = (); // no Prometheus metrics
|
||||
|
||||
fn start(self, ctx: C) -> SpawnedSubsystem {
|
||||
let future = Box::pin(async move {
|
||||
Self::run(ctx).await;
|
||||
@@ -123,8 +121,6 @@ impl Subsystem2 {
|
||||
impl<C> Subsystem<C> for Subsystem2
|
||||
where C: SubsystemContext<Message=CandidateValidationMessage>
|
||||
{
|
||||
type Metrics = (); // no Prometheus metrics
|
||||
|
||||
fn start(self, ctx: C) -> SpawnedSubsystem {
|
||||
let future = Box::pin(async move {
|
||||
Self::run(ctx).await;
|
||||
|
||||
Reference in New Issue
Block a user