Skip to content

Commit efcd392

Browse files
committed
StaleResponseTtl -> StaleResponseTTL
1 parent 8da1b69 commit efcd392

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dnscrypt-proxy/plugin_cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/miekg/dns"
1111
)
1212

13-
const StaleResponseTtl = 30 * time.Second
13+
const StaleResponseTTL = 30 * time.Second
1414

1515
type CachedResponse struct {
1616
expiration time.Time
@@ -92,7 +92,7 @@ func (plugin *PluginCache) Eval(pluginsState *PluginsState, msg *dns.Msg) error
9292
synth.Question = msg.Question
9393

9494
if time.Now().After(expiration) {
95-
expiration2 := time.Now().Add(StaleResponseTtl)
95+
expiration2 := time.Now().Add(StaleResponseTTL)
9696
updateTTL(synth, expiration2)
9797
pluginsState.sessionData["stale"] = synth
9898
return nil

0 commit comments

Comments
 (0)