rob05c commented on code in PR #6865:
URL: https://github.com/apache/trafficcontrol/pull/6865#discussion_r883089000
##########
lib/go-atscfg/regexrevalidatedotconfig.go:
##########
@@ -41,6 +41,12 @@ const DefaultMaxRevalDurationDays = 90
const JobKeywordPurge = "PURGE"
const RegexRevalidateMinTTL = time.Hour
+type RevalType string
+
+const MISS = RevalType("MISS")
Review Comment:
Nitpick: Go variables, including consts, should be CamelCase. Should be
`const Miss` and `const Stale`.
Personally, for enums I prefer `RevalTypeMiss` and `RevalTypeStale`, just
for clarity. Especially since they're scoped to the entire `atscfg` package
https://go.dev/doc/effective_go#names
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]