Skip to content

Commit

Permalink
Update pkg/cache/repository.go comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kushnaidu committed Sep 4, 2024
1 parent ebf6b79 commit 644f2c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cache/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,7 @@ func (r *cachedRepository) refreshAllCachedPackages(ctx context.Context) (map[re
}
}

// Send notification for packages that changed.
// Send notification first before creation of PkgRev to avoid race condition after an approve because of ownerReference.
// Send notification for packages that changed before the creation of PkgRev to avoid race conditions because of ownerReferences.
addSent := 0
modSent := 0
for kname, newPackage := range newPackageRevisionNames {
Expand Down

0 comments on commit 644f2c8

Please sign in to comment.