mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 13:18:53 +00:00
health, all: remove health.Global, finish plumbing health.Tracker
Updates #11874 Updates #4136 Change-Id: I414470f71d90be9889d44c3afd53956d9f26cd61 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
a4a282cd49
commit
745931415c
@@ -139,14 +139,6 @@ func (s *System) ProxyMapper() *proxymap.Mapper {
|
||||
|
||||
// HealthTracker returns the system health tracker.
|
||||
func (s *System) HealthTracker() *health.Tracker {
|
||||
// TODO(bradfitz): plumb the tsd.System.HealthTracker() value
|
||||
// everywhere and then then remove this use of the global
|
||||
// and remove health.Global entirely. But for now we keep
|
||||
// the two in sync during plumbing.
|
||||
const stillPlumbing = true
|
||||
if stillPlumbing {
|
||||
return health.Global
|
||||
}
|
||||
return &s.healthTracker
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user