0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd:Ⓜ️:vm: Only call mass fetcher for multiple evals.

This commit is contained in:
Jason Volk 2020-11-30 22:25:13 -08:00
parent 7fe0e9106f
commit 3db3770302

View file

@ -198,7 +198,8 @@ ircd::m::vm::execute(eval &eval,
};
if(likely(opts.phase[phase::VERIFY] && opts.mfetch_keys))
eval.mfetch_keys();
if(events.size() > 1)
eval.mfetch_keys();
size_t accepted(0), existed(0), i, j, k;
for(i = 0; i < events.size(); i += j)