Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
yago-123 committed Jan 21, 2025
1 parent 1f907ef commit f17c81b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/miner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var (
)
)

func main() {
func main() { //nolint:funlen // it's OK to be long here
var block *kernel.Block

// execute the root command
Expand Down
2 changes: 0 additions & 2 deletions pkg/network/p2p_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,6 @@ func (n *NodeP2P) RegisterMetrics(register *prometheus.Registry) {
for peerID, stat := range stats {
gaugeVec.WithLabelValues("in", peerID.String()).Set(float64(stat.TotalIn))
gaugeVec.WithLabelValues("out", peerID.String()).Set(float64(stat.TotalOut))

}

time.Sleep(n.cfg.Prometheus.UpdateInterval)
Expand All @@ -621,7 +620,6 @@ func (n *NodeP2P) RegisterMetrics(register *prometheus.Registry) {
for peerID, stat := range stats {
gaugeVec.WithLabelValues("in", peerID.String()).Set(float64(stat.RateIn))
gaugeVec.WithLabelValues("out", peerID.String()).Set(float64(stat.RateOut))

}

time.Sleep(n.cfg.Prometheus.UpdateInterval)
Expand Down

0 comments on commit f17c81b

Please sign in to comment.