mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd:Ⓜ️:keys: Send old keys to cache first.
This commit is contained in:
parent
c776229112
commit
8ff493916a
1 changed files with 4 additions and 4 deletions
|
@ -487,14 +487,14 @@ ircd::m::keys::cache::set(const json::object &keys)
|
||||||
|
|
||||||
size_t ret{0};
|
size_t ret{0};
|
||||||
static const size_t max{32};
|
static const size_t max{32};
|
||||||
const json::object &vks{keys["verify_keys"]};
|
|
||||||
for(auto it(begin(vks)); it != end(vks) && ret < max; ++it, ++ret)
|
|
||||||
send_to_cache(*it);
|
|
||||||
|
|
||||||
const json::object &old_vks{keys["old_verify_keys"]};
|
const json::object &old_vks{keys["old_verify_keys"]};
|
||||||
for(auto it(begin(old_vks)); it != end(old_vks) && ret < max; ++it, ++ret)
|
for(auto it(begin(old_vks)); it != end(old_vks) && ret < max; ++it, ++ret)
|
||||||
send_to_cache(*it);
|
send_to_cache(*it);
|
||||||
|
|
||||||
|
const json::object &vks{keys["verify_keys"]};
|
||||||
|
for(auto it(begin(vks)); it != end(vks) && ret < max; ++it, ++ret)
|
||||||
|
send_to_cache(*it);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue