Skip to content
Snippets Groups Projects
Commit 1c36f964 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

name directory: schedule saving addresses

Change-Id: If65e96d9ae67631deda902240a828b084ec8611a
parent 301d9af8
No related branches found
No related tags found
No related merge requests found
......@@ -264,7 +264,7 @@ void NameDirectory::lookupName(const std::string& n, LookupCallback cb)
nameCache_.emplace(addr, name);
}
cb(addr, Response::found);
saveCache();
scheduleSave();
} else if (code >= 400 && code < 500) {
cb("", Response::notFound);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment