Update based on portbase review suggestions

This commit is contained in:
Daniel
2021-01-06 13:35:25 +01:00
parent 72c7592cdd
commit 60ac9af5f2
4 changed files with 12 additions and 12 deletions

View File

@@ -109,7 +109,7 @@ func (rec *NameRecord) Save() error {
func clearNameCache(ar *api.Request) (msg string, err error) {
log.Warning("resolver: user requested dns cache clearing via action")
n, err := recordDatabase.Purge(ar.Ctx(), query.New(nameRecordsKeyPrefix))
n, err := recordDatabase.Purge(ar.Context(), query.New(nameRecordsKeyPrefix))
if err != nil {
return "", err
}