Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
fix: inconsistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
eitu5ami committed Feb 19, 2024
1 parent a65d026 commit ece3945
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions internal/proxy/healthcheckmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ type HealthCheckManager struct {
}

func NewHealthCheckManager(config HealthCheckManagerConfig) *HealthCheckManager {
hcs := []*HealthChecker{}

hcm := &HealthCheckManager{
metricRPCProviderInfo: promauto.NewGaugeVec(
prometheus.GaugeOpts{
Expand Down Expand Up @@ -75,11 +73,9 @@ func NewHealthCheckManager(config HealthCheckManagerConfig) *HealthCheckManager
panic(err)
}

hcs = append(hcs, hc)
hcm.hcs = append(hcm.hcs, hc)
}

hcm.hcs = hcs

return hcm
}

Expand Down
6 changes: 3 additions & 3 deletions internal/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ type Proxy struct {
metricResponseStatus *prometheus.CounterVec
}

func NewProxy(proxyConfig Config, healthCheckManager *HealthCheckManager) *Proxy {
func NewProxy(config Config, hcm *HealthCheckManager) *Proxy {
proxy := &Proxy{
config: proxyConfig,
healthcheckManager: healthCheckManager,
config: config,
healthcheckManager: hcm,
metricResponseTime: promauto.NewHistogramVec(
prometheus.HistogramOpts{
Name: "zeroex_rpc_gateway_request_duration_seconds",
Expand Down

0 comments on commit ece3945

Please sign in to comment.