0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 12:48:54 +02:00

ircd::db: Adjust txn seq_closure to take seqnum reference.

This commit is contained in:
Jason Volk 2018-03-27 15:21:00 -07:00
parent ce715f62c7
commit 301b1d684b

View file

@ -20,8 +20,8 @@ namespace ircd::db
void for_each(const txn &, const std::function<void (const delta &)> &); void for_each(const txn &, const std::function<void (const delta &)> &);
std::string debug(const txn &); std::string debug(const txn &);
using seq_closure_bool = std::function<bool (txn &, uint64_t)>; using seq_closure_bool = std::function<bool (txn &, const uint64_t &)>;
using seq_closure = std::function<void (txn &, uint64_t)>; using seq_closure = std::function<void (txn &, const uint64_t &)>;
bool for_each(database &d, const uint64_t &seq, const seq_closure_bool &); bool for_each(database &d, const uint64_t &seq, const seq_closure_bool &);
void for_each(database &d, const uint64_t &seq, const seq_closure &); void for_each(database &d, const uint64_t &seq, const seq_closure &);
} }