diff --git a/pkg/collector/collector.go b/pkg/collector/collector.go index 9835fee..fcf4043 100644 --- a/pkg/collector/collector.go +++ b/pkg/collector/collector.go @@ -220,9 +220,10 @@ func (wb WalletBalanceCollector) Collect(ch chan<- prometheus.Metric) { func getDiscordIDs(ops []config.Operator) string { var ids []string - for _, op := range ops { - pattern := regexp.MustCompile(`^\d+$`) + pattern := regexp.MustCompile(`^\d+$`) + + for _, op := range ops { if pattern.MatchString(op.Discord.ID) { ids = append(ids, op.Discord.ID) }