summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index fccf1c53..8b8b2985 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -4013,9 +4013,8 @@ Cache::markUserKeysOutOfDate(lmdb::txn &txn, UserKeyCache cacheEntry; auto res = db.get(txn, user, oldKeys); if (res) { - auto cacheEntry = - json::parse(std::string_view(oldKeys.data(), oldKeys.size())) - .get<UserKeyCache>(); + cacheEntry = json::parse(std::string_view(oldKeys.data(), oldKeys.size())) + .get<UserKeyCache>(); } cacheEntry.last_changed = sync_token;