Skip to content

Commit

Permalink
ProposerFactory add method to set metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk committed Feb 19, 2024
1 parent 2a32b5c commit fb10844
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions substrate/client/basic-authorship/src/basic_authorship.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ impl<A, C, PR> ProposerFactory<A, C, PR> {
pub fn set_soft_deadline(&mut self, percent: Percent) {
self.soft_deadline_percent = percent;
}

/// Set metrics.
pub fn set_metrics(&mut self, metrics: PrometheusMetrics) {
self.metrics = metrics;
}
}

impl<Block, C, A, PR> ProposerFactory<A, C, PR>
Expand Down

0 comments on commit fb10844

Please sign in to comment.