StaleResponseTtl -> StaleResponseTTL

This commit is contained in:
Frank Denis 2021-09-27 15:47:19 +02:00
parent 8da1b698ad
commit efcd392279
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import (
"github.com/miekg/dns"
)
const StaleResponseTtl = 30 * time.Second
const StaleResponseTTL = 30 * time.Second
type CachedResponse struct {
expiration time.Time
@ -92,7 +92,7 @@ func (plugin *PluginCache) Eval(pluginsState *PluginsState, msg *dns.Msg) error
synth.Question = msg.Question
if time.Now().After(expiration) {
expiration2 := time.Now().Add(StaleResponseTtl)
expiration2 := time.Now().Add(StaleResponseTTL)
updateTTL(synth, expiration2)
pluginsState.sessionData["stale"] = synth
return nil