Skip to content

Commit

Permalink
Rename lint
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Moore <[email protected]>
  • Loading branch information
jimmyaxod committed Nov 26, 2024
1 parent 3bc5da7 commit ceb6ed5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/storage/metrics/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
)

type PrometheusMetricsConfig struct {
type MetricsConfig struct {
StorageHeatmapBuckets []float64
Namespace string
SubSyncer string
Expand All @@ -44,8 +44,8 @@ type PrometheusMetricsConfig struct {
TickWaitingCache time.Duration
}

func DefaultConfig() *PrometheusMetricsConfig {
return &PrometheusMetricsConfig{
func DefaultConfig() *MetricsConfig {
return &MetricsConfig{
StorageHeatmapBuckets: []float64{
0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45,
0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1,
Expand Down Expand Up @@ -79,7 +79,7 @@ func DefaultConfig() *PrometheusMetricsConfig {
type Metrics struct {
reg prometheus.Registerer
lock sync.Mutex
config *PrometheusMetricsConfig
config *MetricsConfig

// syncer
syncerBlockSize *prometheus.GaugeVec
Expand Down Expand Up @@ -196,7 +196,7 @@ type Metrics struct {
cancelfns map[string]context.CancelFunc
}

func New(reg prometheus.Registerer, config *PrometheusMetricsConfig) *Metrics {
func New(reg prometheus.Registerer, config *MetricsConfig) *Metrics {

met := &Metrics{
config: config,
Expand Down

0 comments on commit ceb6ed5

Please sign in to comment.