Skip to content

Commit

Permalink
health tracker: account for group service checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmood Ali committed Mar 22, 2020
1 parent 1454af7 commit 525623c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/allochealth/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ func NewTracker(parentCtx context.Context, logger hclog.Logger, alloc *structs.A
}
}

for _, s := range t.tg.Services {
t.consulCheckCount += len(s.Checks)
}

t.ctx, t.cancelFn = context.WithCancel(parentCtx)
return t
}
Expand Down

0 comments on commit 525623c

Please sign in to comment.