Fix shadowing

pull/684/head
Nicolas Werner 3 years ago
parent 110fef5c68
commit 69e65cef2f
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 5
      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;

Loading…
Cancel
Save