You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
353 B

  1. package consensus
  2. import "github.com/go-kit/kit/metrics"
  3. import "github.com/go-kit/kit/metrics/discard"
  4. // Metrics contains metrics exposed by this package.
  5. type Metrics struct {
  6. // height of the chain
  7. Height metrics.Counter
  8. }
  9. // NopMetrics returns no-op Metrics.
  10. func NopMetrics() *Metrics {
  11. return &Metrics{
  12. Height: discard.NewCounter(),
  13. }
  14. }