mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 01:34:57 +00:00
simplify quadrable instance creation
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user