func (health *Health) Update() {
	start := time.Now()

	for time.Since(start) < time.Second {
		if atomic.CompareAndSwapUint32(&health.locker, 0, 1) {
			health.updated = time.Now()
			atomic.StoreUint32(&health.locker, 0)
			return
		}

		time.Sleep(50 * time.Millisecond)
	}
}
// Update updates the health timer on each loadpoint update
Update updates the health timer on each loadpoint update
// Update updates the health timer on each loadpoint update
func (health *Health) Update() {
	start := time.Now()
	for time.Since(start) < time.Second {
		if atomic.CompareAndSwapUint32(&health.locker, 0, 1) {
			health.updated = time.Now()
			atomic.StoreUint32(&health.locker, 0)
			return
		}
		time.Sleep(50 * time.Millisecond)
	}
}
func ( health * Health ) Update ( ) { start := time . Now ( ) for time . Since ( start ) < time . Second { if atomic . CompareAndSwapUint32 ( & health . locker , 0 , 1 ) { health . updated = time . Now ( ) atomic . StoreUint32 ( & health . locker , 0 ) return } time . Sleep ( 50 * time . Millisecond ) } }
Update updates the health timer on each loadpoint update
Update updates the health timer on each loadpoint update