Implement review suggestions

This commit is contained in:
Daniel 2021-01-28 16:44:40 +01:00
parent ee9ee3dc68
commit 6233c76778
6 changed files with 9 additions and 9 deletions

View file

@ -190,7 +190,7 @@ func checkCache(ctx context.Context, q *Query) *RRCache {
// Check if we want to reset the cache for this entry.
if shouldResetCache(q) {
err := DeleteNameRecord(q.FQDN, q.QType.String())
err := ResetCachedRecord(q.FQDN, q.QType.String())
switch {
case err == nil:
log.Tracer(ctx).Tracef("resolver: cache for %s%s was reset", q.FQDN, q.QType)