0
0
Fork 0
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:
Jason Volk 2019-12-25 00:12:06 -08:00
parent c776229112
commit 8ff493916a

View file

@ -487,14 +487,14 @@ ircd::m::keys::cache::set(const json::object &keys)
size_t ret{0};
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"]};
for(auto it(begin(old_vks)); it != end(old_vks) && ret < max; ++it, ++ret)
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;
}