1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Sort updates (cosmetic) (#772)

* Sort updates (cosmetic)

* comments

* More comments
This commit is contained in:
Tom Limoncelli
2020-07-01 05:55:20 -04:00
committed by GitHub
parent 0a36cb7fcc
commit 367a14ab44
4 changed files with 37 additions and 3 deletions

View File

@ -247,6 +247,10 @@ func ChangesetLess(c Changeset, i, j int) bool {
// elements, and sort on the result.
}
func CorrectionLess(c []*models.Correction, i, j int) bool {
return c[i].Msg < c[j].Msg
}
func (d *differ) ChangedGroups(existing []*models.RecordConfig) map[models.RecordKey][]string {
changedKeys := map[models.RecordKey][]string{}
_, create, delete, modify := d.IncrementalDiff(existing)