Skip to content

Commit

Permalink
fix: set ttl to default in case of missed refresher wake time
Browse files Browse the repository at this point in the history
  • Loading branch information
red55 committed May 13, 2024
1 parent 860c3e0 commit 114ae6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/dns/loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func calcTTL(de *Entry) uint32 {
ttl = uint32(t)
} else {
log.L().Warnf("Looks like %v already expired. Missed time %f.", de, t)
de.SetTtl(ttl)
}

log.L().Infof("Refresher will sleep for %ds until %s for %s", ttl, de.Expire(),
Expand Down

0 comments on commit 114ae6d

Please sign in to comment.