code: func (s *serviceConfigWatch) updateRegistration(registration *serviceRegistration) error {
  	return s.handleUpdate(cache.UpdateEvent{
  		Result: registration,
  	}, true, false)
  }
docs: // updateRegistration does a synchronous update of the local service registration and
  // returns the result. The agent stateLock should be held when calling this function.