Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@ordian
Copy link

@ordian ordian commented Sep 29, 2020

and remove Metrics as an associated type from Subsystem trait.

It was initially added as an assoc type to Metrics for two reasons:

  • so we don't accidentally forget to implement Metrics for a Subsystem
  • convenient initialization SubsystemName::Metrics::register(registry)

But given workarounds like #1741 (comment), it seems better to remove it for now.

@ordian ordian added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Sep 29, 2020
@ordian ordian requested a review from montekki September 29, 2020 11:11
@montekki
Copy link
Contributor

bot merge

@ghost
Copy link

ghost commented Sep 29, 2020

Trying merge.

@ghost ghost merged commit 77d04d4 into master Sep 29, 2020
@ghost ghost deleted the ao-remove-metrics-type-arg-from-subsystem branch September 29, 2020 11:42
ordian pushed a commit that referenced this pull request Oct 6, 2020
* master:
  Make collation an optional return (#1787)
  XCM: Land xcm-handler and xcm-executor (#1771)
  v0.8.25 (#1785)
  add two node local net script (#1781)
  Adjust max nominators down to 128 (from 256) (#1782)
  Companion for substrate/pull/7215 (#1768)
  Remove Stale Upgrades (#1780)
  Update Polkadot Weights for Substrate 2.0 (#1761)
  Parachains v1 registrar module. (#1559)
  Derive `From` for `AllMessages` and simplify `send_msg` (#1774)
  implement remaining subsystem metrics (#1770)
  Companion for paritytech/substrate#7236 (#1773)
  WIP: remove deprecated only/except clauses, build is now manual on PRs (#1769)
  Increase Westend `spec_version` (#1766)
  move Metrics to utils (#1765)
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants