Skip to content

Commit

Permalink
remove unnecessary continue in collect loop
Browse files Browse the repository at this point in the history
  • Loading branch information
VinozzZ committed Oct 10, 2024
1 parent a247769 commit 752475c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions collect/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,16 +387,12 @@ func (i *InMemCollector) collect() {
return
}
i.processSpan(sp)
i.Metrics.Gauge("collector_collect_loop_duration_ms", float64(time.Now().Sub(startTime).Milliseconds()))
continue
case sp, ok := <-i.fromPeer:
if !ok {
// channel's been closed; we should shut down.
return
}
i.processSpan(sp)
i.Metrics.Gauge("collector_collect_loop_duration_ms", float64(time.Now().Sub(startTime).Milliseconds()))
continue
case <-i.reload:
i.reloadConfigs()
}
Expand Down

0 comments on commit 752475c

Please sign in to comment.