code: func (s *Store) updateAllServiceIndexesOfNode(tx *memdb.Txn, idx uint64, nodeID string) error {
  	services, err := tx.Get("services", "node", nodeID)
  	if err != nil {
  		return fmt.Errorf("failed updating services for node %s: %s", nodeID, err)
  	}
  	for service := services.Next(); service != nil; service = services.Next() {
  		svc := service.(*structs.ServiceNode).ToNodeService()
  		if err := tx.Insert("index", &IndexEntry{serviceIndexName(svc.Service), idx}); err != nil {
  			return fmt.Errorf("failed updating index: %s", err)
  		}
  	}
  	return nil
  }
docs: // updateAllServiceIndexesOfNode updates the Raft index of all the services associated with this node