Skip to content

Commit

Permalink
chore: gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
PFC-developer committed Jun 13, 2024
1 parent d16a819 commit 7669b84
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion cmd/cosmos-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ func Execute(_ *cobra.Command, _ []string) {

s.Log = log
err = s.Connect(&config)

if err != nil {
log.Fatal().Err(err).Msg("Could not connect to service")
}
Expand Down
1 change: 0 additions & 1 deletion cmd/inj-cosmos-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func Execute(_ *cobra.Command, _ []string) {

s.Log = log
err = s.Connect(&config)

if err != nil {
log.Fatal().Err(err).Msg("Could not connect to service")
}
Expand Down
1 change: 0 additions & 1 deletion cmd/kuji-cosmos-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ func Execute(_ *cobra.Command, _ []string) {
s.Log = log
// Setup gRPC connection
err = s.Connect(&config)

if err != nil {
log.Fatal().Err(err).Msg("Could not connect to service")
}
Expand Down
1 change: 0 additions & 1 deletion cmd/pryzm-cosmos-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func Execute(_ *cobra.Command, _ []string) {

s.Log = log
err = s.Connect(&config)

if err != nil {
log.Fatal().Err(err).Msg("Could not connect to service")
}
Expand Down
1 change: 0 additions & 1 deletion cmd/pryzm-cosmos-exporter/pryzm.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ func doPryzmMetrics(wg *sync.WaitGroup, sublogger *zerolog.Logger, metrics *Pryz
}
metrics.missCounter.WithLabelValues("miss").Add(missCount)
}()

}

func PryzmMetricHandler(w http.ResponseWriter, r *http.Request, s *exporter.Service) {
Expand Down
1 change: 0 additions & 1 deletion cmd/sei-cosmos-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ func Execute(_ *cobra.Command, _ []string) {
s := &exporter.Service{}
s.Log = log
err = s.Connect(&config)

if err != nil {
log.Fatal().Err(err).Msg("Could not connect to service")
}
Expand Down
3 changes: 0 additions & 3 deletions pkg/exporter/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ func NewGeneralMetrics(reg prometheus.Registerer, config *ServiceConfig) *Genera

func NewGeneralExtendedMetrics(reg prometheus.Registerer, config *ServiceConfig) *GeneralExtendedMetrics {
m := &GeneralExtendedMetrics{

communityPoolGauge: prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "cosmos_general_community_pool",
Expand All @@ -169,7 +168,6 @@ func NewGeneralExtendedMetrics(reg prometheus.Registerer, config *ServiceConfig)
reg.MustRegister(m.supplyTotalGauge)

return m

}

func GetGeneralMetrics(wg *sync.WaitGroup, sublogger *zerolog.Logger, metrics *GeneralMetrics, s *Service, config *ServiceConfig) {
Expand Down Expand Up @@ -412,7 +410,6 @@ func GetGeneralMetrics(wg *sync.WaitGroup, sublogger *zerolog.Logger, metrics *G
}

func GetGeneralExtendedMetrics(wg *sync.WaitGroup, sublogger *zerolog.Logger, metrics *GeneralExtendedMetrics, s *Service, config *ServiceConfig) {

wg.Add(1)
go func() {
defer wg.Done()
Expand Down
1 change: 0 additions & 1 deletion pkg/exporter/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ func (s *Service) Connect(config *ServiceConfig) error {
s.GrpcConn, err = grpc.Dial(
config.NodeAddress,
grpc.WithTransportCredentials(insecure.NewCredentials()))

if err != nil {
return err
}
Expand Down

0 comments on commit 7669b84

Please sign in to comment.