Skip to content

Commit

Permalink
When updating cmsRecords don't make new map, re-use old one
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Sep 30, 2024
1 parent 791702a commit bb4ed23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cric/cric.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func UpdateCricRecords(key, cricFile, cricURL string, cricUpdateInterval int64,

// UpdateCMSRecords updates CMS Records
func UpdateCMSRecords(cricRecords cmsauth.CricRecords) {
cmsRecords = make(cmsauth.CricRecords)
// cmsRecords = make(cmsauth.CricRecords)
for _, r := range cricRecords {
for _, dn := range r.DNs {
sortedDN := cmsauth.GetSortedDN(dn)
Expand Down

0 comments on commit bb4ed23

Please sign in to comment.