Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed May 22, 2024
1 parent 449388b commit 8d87599
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/thor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func defaultAction(ctx *cli.Context) error {
}
defer func() { log.Info("stopping API server..."); srvCloser() }()

printStartupMessage2(gene, apiURL, p2pCommunicator.Enode(),metricsURL)
printStartupMessage2(gene, apiURL, p2pCommunicator.Enode(), metricsURL)

if err := p2pCommunicator.Start(); err != nil {
return err
Expand Down
5 changes: 3 additions & 2 deletions metrics/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func CounterVec(name string, labels []string) CountVecMeter {
return metrics.GetOrCreateCountVecMeter(name, labels)
}

// GaugeMeter ...
// GaugeMeter is a metric that represents a single numeric value, which can arbitrarily go up and down.
type GaugeMeter interface {
Add(int64)
}
Expand All @@ -79,7 +79,8 @@ func Gauge(name string) GaugeMeter {
return metrics.GetOrCreateGaugeMeter(name)
}

// GaugeVecMeter ...
// GaugeVecMeter is a metric that represents a single numeric value, which can arbitrarily go up and down
// with multiple labels.
type GaugeVecMeter interface {
GaugeWithLabel(int64, map[string]string)
}
Expand Down

0 comments on commit 8d87599

Please sign in to comment.