Files
Rediska/rediska/worker/AsyncWorkerMain.cpp
Nikita Astafyev 35a6349071
Some checks failed
Code Analysis / analysis (push) Failing after 2m59s
chore: initial commit
2025-12-30 22:34:58 +07:00

14 lines
339 B
C++

#include "rediska/worker/AsyncWorker.hpp"
#include "rediska/frontend/server.hpp"
#include <iostream>
int run_async_server() {
rediska::worker::AsyncWorker worker(4, 1000);
worker.Start();
RunFrontendServer("0.0.0.0:50051", [&worker](QueueMessage msg) {
worker.Enqueue(std::move(msg));
});
return 0;
}