mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01: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,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.
|
||||
|
|
Loading…
Reference in a new issue