dont invalidate cache on lns timeout, only on explicit negative

pull/1624/head
Jeff Becker 3 years ago
parent 26e182955c
commit 83e70d95e0
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -932,9 +932,10 @@ namespace llarp
if (result)
{
var::visit(
[&](auto&& value) {
[&result, &cache, name](auto&& value) {
if (value.IsZero())
{
cache.Remove(name);
result = std::nullopt;
}
},
@ -944,10 +945,6 @@ namespace llarp
{
cache.Put(name, *result);
}
else
{
cache.Remove(name);
}
handler(result);
};

Loading…
Cancel
Save