Skip to content

Commit 2e053fb

Browse files
committed
Naming Feedback
1 parent 46a25f7 commit 2e053fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gdpr/vendorlist-fetching.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ func makeVendorListNotFoundError(vendorListVersion uint16) error {
8888
// preloadCache saves all the known versions of the vendor list for future use.
8989
func preloadCache(ctx context.Context, client *http.Client, urlMaker func(uint16) string, saver saveVendors) {
9090
latestVersion := saveOne(ctx, client, urlMaker(0), saver)
91-
firstVersion := uint16(2) // The first version of the GVL for TCF2 has no vendors defined and is very unlikely to be used. Don't preload it.
9291

93-
for i := firstVersion; i < latestVersion; i++ {
92+
// The GVL for TCF2 has no vendors defined in its first version. It's very unlikely to be used, so don't preload it.
93+
firstVersionToLoad := uint16(2)
94+
95+
for i := firstVersionToLoad; i < latestVersion; i++ {
9496
saveOne(ctx, client, urlMaker(i), saver)
9597
}
9698
}

0 commit comments

Comments
 (0)