Skip to content

Commit

Permalink
parentCacheGroups struct comment change
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Olsen committed May 2, 2023
1 parent 6e9d308 commit 1ac8abf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/go-atscfg/parentdotconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ func MakeParentDotConfig(
// parentCacheGroups holds parent cache groups names for OTF topologies.
// Primaries and Secondaries are from origin parent cache groups with
// assigned primary and secondary cache groups.
// For last, any origin parent cache groups that aren't primary or secondary.
// The Null parent cache groups aren't considered unless the current server
// cache group has no primary/secondary parents selected.
type parentCacheGroups struct {
Expand Down Expand Up @@ -246,7 +245,7 @@ func createTopology(server *Server, ds DeliveryService, nameTopologies map[Topol
}

// Only consider arbitrarily assigned parents if the current
// cache group does not have primary or secondary parents assigned.
// cache group does not have primary and secondary parents assigned.
if !hasprimsec && 0 < len(cgprimsec.Nulls) {
for _, _ = range cgprimsec.Nulls {
parents = append(parents, pind)
Expand Down

0 comments on commit 1ac8abf

Please sign in to comment.