Commit 1c36f964 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

name directory: schedule saving addresses

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