cache result on success

pull/1541/head
Jeff Becker 3 years ago
parent 7a11f3b1e3
commit 95eba18e40
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -824,7 +824,11 @@ namespace llarp
}
auto maybeInvalidateCache = [handler, &cache, name](auto result) {
if (not result)
if (result)
{
cache.Put(name, *result);
}
else
{
cache.Remove(name);
}

Loading…
Cancel
Save