code: func (s *Store) ACLTokenSet(idx uint64, token *structs.ACLToken, legacy bool) error {
  	tx := s.db.Txn(true)
  	defer tx.Abort()
  
  	// Call set on the ACL
  	if err := s.aclTokenSetTxn(tx, idx, token, false, false, legacy); err != nil {
  		return err
  	}
  
  	if err := indexUpdateMaxTxn(tx, idx, "acl-tokens"); err != nil {
  		return fmt.Errorf("failed updating index: %s", err)
  	}
  
  	tx.Commit()
  	return nil
  }
docs: // ACLTokenSet is used to insert an ACL rule into the state store.