Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
blotus committed Apr 23, 2024
1 parent 39698f8 commit 9f988df
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"slices"
"strings"
"syscall"
"time"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
Expand All @@ -35,8 +34,6 @@ import (

const bouncerType = "crowdsec-firewall-bouncer"

var startupTimestamp = time.Now().UTC().Unix()

func backendCleanup(backend *backend.BackendCTX) {
log.Info("Shutting down backend")

Expand Down Expand Up @@ -169,7 +166,7 @@ func metricsUpdater(met *models.RemediationComponentsMetrics) {
met.Metrics = make([]*models.MetricsDetailItem, 0)

for _, metricFamily := range promMetrics {
for _, metric := range metricFamily.Metric {
for _, metric := range metricFamily.GetMetric() {
switch metricFamily.GetName() {
case metrics.ActiveBannedIPsMetricName:
labels := metric.GetLabel()
Expand Down

0 comments on commit 9f988df

Please sign in to comment.