code: func UpdateService(tx Tx, s *api.Service) error {
  	// Ensure the name is either not in use or already used by this same Service.
  	if existing := tx.lookup(tableService, indexName, strings.ToLower(s.Spec.Annotations.Name)); existing != nil {
  		if existing.GetID() != s.ID {
  			return ErrNameConflict
  		}
  	}
  
  	return tx.update(tableService, s)
  }
docs: // UpdateService updates an existing service in the store.
  // Returns ErrNotExist if the service doesn't exist.