func doHealth(sdk *sdk.SDK, stop <-chan struct{}) {
	tick := time.Tick(2 * time.Second)
	for {
		if err := sdk.Health(); err != nil {
			log.Fatalf("Could not send health ping: %v", err)
		}
		select {
		case <-stop:
			log.Print("Stopped health pings")
			return
		case <-tick:
		}
	}
}
// doHealth sends the regular Health Pings
doHealth sends the regular Health Pings
// doHealth sends the regular Health Pings
func doHealth(sdk *sdk.SDK, stop <-chan struct{}) {
	tick := time.Tick(2 * time.Second)
	for {
		if err := sdk.Health(); err != nil {
			log.Fatalf("Could not send health ping: %v", err)
		}
		select {
		case <-stop:
			log.Print("Stopped health pings")
			return
		case <-tick:
		}
	}
}
func doHealth ( sdk * sdk . SDK , stop <- chan struct { } ) { tick := time . Tick ( 2 * time . Second ) for { if err := sdk . Health ( ) ; err != nil { log . Fatalf ( " " , err ) } select { case <- stop : log . Print ( " " ) return case <- tick : } } }
doHealth sends the regular Health Pings
doHealth sends the regular Health Pings