0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

modules/m_vm_fetch: Replace auth_events check loop w/ parallel query.

This commit is contained in:
Jason Volk 2020-06-15 03:10:42 -07:00
parent 075ef11386
commit 4a907cdd35

View file

@ -212,16 +212,10 @@ try
prev.auth_events_count()
};
size_t auth_exists{0};
for(size_t i(0); i < auth_count; ++i)
const size_t auth_exists
{
const auto &auth_id
{
prev.auth_event(i)
};
auth_exists += bool(m::exists(auth_id));
}
prev.auth_events_exist()
};
// We are satisfied at this point if all auth_events for this event exist,
// as those events have themselves been successfully evaluated and so forth.