fix: correct spelling of MaximumDefaultTTL in cache and dnsutil packages (#7678)

Signed-off-by: Timur Solodovnikov <tsolodov@gmail.com>
This commit is contained in:
Timur Solodovnikov
2025-11-18 08:34:43 -08:00
committed by GitHub
parent 7d7bbc8061
commit 614a364458
2 changed files with 6 additions and 5 deletions

View File

@@ -47,7 +47,8 @@ func MinimalTTL(m *dns.Msg, mt response.Type) time.Duration {
const (
// MinimalDefaultTTL is the absolute lowest TTL we use in CoreDNS.
MinimalDefaultTTL = 5 * time.Second
// MaximumDefaulTTL is the maximum TTL was use on RRsets in CoreDNS.
// TODO: rename as MaximumDefaultTTL
MaximumDefaulTTL = 1 * time.Hour
// MaximumDefaultTTL is the maximum TTL was use on RRsets in CoreDNS.
MaximumDefaultTTL = 1 * time.Hour
// Deprecated: use MaximumDefaultTTL instead.
MaximumDefaulTTL = MaximumDefaultTTL
)