0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 05:08:59 +02:00

ircd::db: Reduce the offloading to a wieldy statement.

This commit is contained in:
Jason Volk 2018-04-12 22:27:06 -07:00
parent 9dfd9f8258
commit ae528af7cd

View file

@ -4628,11 +4628,12 @@ ircd::db::_seek_offload(database::column &c,
d.d->NewIterator(blocking_opts, cf)
};
ctx::offload([&closure, &blocking_it]
const auto function{[&closure, &blocking_it]
{
closure(*blocking_it);
});
}};
ctx::offload(function);
return blocking_it;
}