code: func (a *Agent) restoreCheckState(snap map[types.CheckID]*structs.HealthCheck) {
  	for id, check := range snap {
  		a.State.UpdateCheck(id, check.Status, check.Output)
  	}
  }
docs: // restoreCheckState is used to reset the health state based on a snapshot.
  // This is done after we finish the reload to avoid any unnecessary flaps
  // in health state and potential session invalidations.