mirror of
https://github.com/coredns/coredns.git
synced 2025-11-19 18:32:16 -05:00
fix: correct spelling of MaximumDefaultTTL in cache and dnsutil packages (#7678)
Signed-off-by: Timur Solodovnikov <tsolodov@gmail.com>
This commit is contained in:
committed by
GitHub
parent
7d7bbc8061
commit
614a364458
4
plugin/cache/cache.go
vendored
4
plugin/cache/cache.go
vendored
@@ -302,9 +302,9 @@ func (w *verifyStaleResponseWriter) WriteMsg(res *dns.Msg) error {
|
||||
}
|
||||
|
||||
const (
|
||||
maxTTL = dnsutil.MaximumDefaulTTL
|
||||
maxTTL = dnsutil.MaximumDefaultTTL
|
||||
minTTL = dnsutil.MinimalDefaultTTL
|
||||
maxNTTL = dnsutil.MaximumDefaulTTL / 2
|
||||
maxNTTL = dnsutil.MaximumDefaultTTL / 2
|
||||
minNTTL = dnsutil.MinimalDefaultTTL
|
||||
|
||||
defaultCap = 10000 // default capacity of the cache.
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user