mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd::db: Move callback into handler; fixes errors from reference member.
This commit is contained in:
parent
b91c768c57
commit
fde100bb93
1 changed files with 3 additions and 3 deletions
|
@ -161,7 +161,7 @@ struct ircd::db::txn::handler
|
|||
using Slice = rocksdb::Slice;
|
||||
|
||||
const database &d;
|
||||
const std::function<bool (const delta &)> &cb;
|
||||
std::function<bool (const delta &)> cb;
|
||||
bool _continue {true};
|
||||
|
||||
Status callback(const delta &) noexcept;
|
||||
|
@ -180,8 +180,8 @@ struct ircd::db::txn::handler
|
|||
Status PutCF(const uint32_t cfid, const Slice &, const Slice &) noexcept override;
|
||||
|
||||
handler(const database &d,
|
||||
const std::function<bool (const delta &)> &cb)
|
||||
std::function<bool (const delta &)> cb)
|
||||
:d{d}
|
||||
,cb{cb}
|
||||
,cb{std::move(cb)}
|
||||
{}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue