mirror of
https://github.com/matrix-construct/construct
synced 2024-06-16 08:58:20 +02:00
modules/m_vm_fetch: Replace auth_events check loop w/ parallel query.
This commit is contained in:
parent
075ef11386
commit
4a907cdd35
|
@ -212,16 +212,10 @@ try
|
||||||
prev.auth_events_count()
|
prev.auth_events_count()
|
||||||
};
|
};
|
||||||
|
|
||||||
size_t auth_exists{0};
|
const size_t auth_exists
|
||||||
for(size_t i(0); i < auth_count; ++i)
|
|
||||||
{
|
{
|
||||||
const auto &auth_id
|
prev.auth_events_exist()
|
||||||
{
|
};
|
||||||
prev.auth_event(i)
|
|
||||||
};
|
|
||||||
|
|
||||||
auth_exists += bool(m::exists(auth_id));
|
|
||||||
}
|
|
||||||
|
|
||||||
// We are satisfied at this point if all auth_events for this event 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.
|
// as those events have themselves been successfully evaluated and so forth.
|
||||||
|
|
Loading…
Reference in a new issue