Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix: persistOnFailure = true
Browse files Browse the repository at this point in the history
If persistOnFailure is true, stale
entries will not be removed on failed lookups
  • Loading branch information
lidel authored Feb 19, 2023
1 parent b26d5c8 commit e4258a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dns_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func init() {
// catastrophic failures like https://github.com/ipfs/bifrost-gateway/issues/34
options := dnscache.ResolverRefreshOptions{}
options.ClearUnused = false
options.PersistOnFailure = false
options.PersistOnFailure = true

// Every dnsCacheRefreshInterval we check for updates, but if there is
// none, or if domain disappears, we keep the last cached version
Expand Down

0 comments on commit e4258a8

Please sign in to comment.