in ccadb2OneCRL/main.go [389:412]
func (u *Updater) getDataSets() (*onecrl.Set, *ccadb.Set, error) {
production := ProductionCollection()
err := u.production.AllRecords(production)
if err != nil {
return nil, nil, errors.WithStack(err)
}
productionSet := onecrl.NewSetFrom(production)
/////////
staging := StagingCollection()
err = u.staging.AllRecords(staging)
if err != nil {
return nil, nil, errors.WithStack(err)
}
stagingSet := onecrl.NewSetFrom(staging)
//////
oneCRLUnion := productionSet.Union(stagingSet).(*onecrl.Set)
//////
ccadbRecords, err := ccadb.Default()
if err != nil {
return nil, nil, errors.WithStack(err)
}
ccadbSet := ccadb.NewSetFrom(ccadbRecords)
return oneCRLUnion, ccadbSet, nil
}