code: func (s *Store) EnsureCheck(idx uint64, hc *structs.HealthCheck) error {
  	tx := s.db.Txn(true)
  	defer tx.Abort()
  
  	// Call the check registration
  	if err := s.ensureCheckTxn(tx, idx, hc); err != nil {
  		return err
  	}
  
  	tx.Commit()
  	return nil
  }
docs: // EnsureCheck is used to store a check registration in the db.