0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 15:00:51 +01:00

modules/client/sync/to_device: More efficient iteration seek.

This commit is contained in:
Jason Volk 2019-02-24 15:30:38 -08:00
parent 80ecb903cc
commit 55fd9505bc

View file

@ -55,7 +55,7 @@ ircd::m::sync::to_device_polylog(data &data)
}; };
bool ret{false}; bool ret{false};
for(; it; ++it) for(it.seek(data.range.first); it; --it)
{ {
const auto &event_idx(it.event_idx()); const auto &event_idx(it.event_idx());
if(!apropos(data, event_idx)) if(!apropos(data, event_idx))