mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd::db: Reduce the offloading to a wieldy statement.
This commit is contained in:
parent
9dfd9f8258
commit
ae528af7cd
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue