mirror of
https://github.com/matrix-construct/construct
synced 2024-09-26 18:38:52 +02:00
modules/m_vm_fetch: Replace auth_events check loop w/ parallel query.
This commit is contained in:
parent
075ef11386
commit
4a907cdd35
1 changed files with 3 additions and 9 deletions
|
@ -212,17 +212,11 @@ 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.
|
||||||
assert(auth_exists <= auth_count);
|
assert(auth_exists <= auth_count);
|
||||||
|
|
Loading…
Reference in a new issue