0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-29 08:13:46 +02:00

ircd:Ⓜ️:dbs: Simplify key decompositions.

This commit is contained in:
Jason Volk 2020-04-04 20:34:43 -07:00
parent e089103a30
commit 5f5b312a3e

View file

@ -166,20 +166,14 @@ bool
ircd::m::dbs::event_state__cmp_lt(const string_view &a,
const string_view &b)
{
const event_state_tuple key[2]
{
event_state_key(a),
event_state_key(b),
};
const auto &[state_key_a, type_a, room_id_a, depth_a, event_idx_a]
{
key[0]
event_state_key(a)
};
const auto &[state_key_b, type_b, room_id_b, depth_b, event_idx_b]
{
key[1]
event_state_key(b)
};
if(state_key_a != state_key_b)