simplify quadrable instance creation

This commit is contained in:
Doug Hoyte
2023-02-07 11:22:52 -05:00
parent 67d11ced30
commit 67331a6e6f
12 changed files with 34 additions and 57 deletions

View File

@ -2,12 +2,7 @@
void RelayServer::runWriter(ThreadPool<MsgWriter>::Thread &thr) {
quadrable::Quadrable qdb;
{
auto txn = env.txn_ro();
qdb.init(txn);
}
qdb.checkout("events");
auto qdb = getQdbInstance();
while(1) {
auto newMsgs = thr.inbox.pop_all();