From efcd3922791d5910aee5847f2062a9928d0c3eff Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 27 Sep 2021 15:47:19 +0200 Subject: [PATCH] StaleResponseTtl -> StaleResponseTTL --- dnscrypt-proxy/plugin_cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnscrypt-proxy/plugin_cache.go b/dnscrypt-proxy/plugin_cache.go index 6279a7a5..cc632213 100644 --- a/dnscrypt-proxy/plugin_cache.go +++ b/dnscrypt-proxy/plugin_cache.go @@ -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