0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-13 08:23:56 +01:00

ircd:Ⓜ️:init::backfill: Minor branch reflow in the handler closure.

This commit is contained in:
Jason Volk 2019-12-03 13:51:59 -08:00
parent df79d61395
commit c04d940e98

View file

@ -307,7 +307,7 @@ try
event
};
return m::for_each(prev, [&](const string_view &event_id)
return m::for_each(prev, [&](const event::id &event_id)
{
if(unlikely(ctx::interruption_requested()))
return false;
@ -315,20 +315,18 @@ try
if(errors.count(event_id))
return true;
if(m::exists(event::id(event_id)))
if(!m::exists(event::id(event_id)))
{
++exists;
return true;
++fetching;
if(!handle_event(room_id, event_id, result.origin, true))
{
errors.emplace(event_id);
return true;
}
else ++evaluated;
}
else ++exists;
++fetching;
if(!handle_event(room_id, event_id, result.origin, true))
{
errors.emplace(event_id);
return true;
}
++evaluated;
return true;
});
});