Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieporth1 authored and folbricht committed Jan 26, 2023
1 parent e3ae13f commit d077a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (r *Cache) Resolve(q *dns.Msg, ci ClientInfo) (*dns.Msg, error) {
// If prefetch is enabled and the TTL has fallen below the trigger time, send
// a concurrent query upstream (to refresh the cached record)
if prefetchEligible && r.CacheOptions.PrefetchTrigger > 0 {
if min, ok := minTTL(a); ok && min < r.CacheOptions.PrefetchTrigger {
if min, ok := minTTL(a); ok && min < r.CacheOptions.PrefetchEligible {
q := q.Copy()
go func() {
log.Debug("prefetching record")
Expand Down

0 comments on commit d077a33

Please sign in to comment.