Skip to content

Commit

Permalink
set run to true in RunCheckers()
Browse files Browse the repository at this point in the history
  • Loading branch information
skandragon committed Jan 19, 2022
1 parent 489f47f commit 2f78a4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions health/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func (h *Health) runChecker(checker *healthIndicator) {
// RunCheckers runs all the health checks, one every frequency/count seconds.
func (h *Health) RunCheckers(frequency int) {
nextIndex := 0
h.run = true

h.Lock()
count := len(h.Checks) + 1 // ensure we are at least 1
Expand Down

0 comments on commit 2f78a4d

Please sign in to comment.