Skip to content

Commit

Permalink
fix continue loop on error
Browse files Browse the repository at this point in the history
  • Loading branch information
yseto committed Apr 22, 2024
1 parent 6ff7e75 commit 727eb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func ticker(ctx context.Context, wg *sync.WaitGroup, c *config.Config, queue *ma
rawMetrics, err := collector.Do(ctx, c)
if err != nil {
log.Println(err.Error())
return
continue
}
if !c.DryRun {
queue.Enqueue(rawMetrics)
Expand Down

0 comments on commit 727eb19

Please sign in to comment.