mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Parallel read request processing with thread pool. (#118)
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "usr.hpp"
|
||||
#include "user_session_handler.hpp"
|
||||
#include "user_input.hpp"
|
||||
#include "read_req.hpp"
|
||||
|
||||
namespace usr
|
||||
{
|
||||
@@ -143,10 +144,7 @@ namespace usr
|
||||
std::string content;
|
||||
if (parser.extract_read_request(content) == 0)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(ctx.users_mutex);
|
||||
|
||||
//Add to the user's pending read requests list.
|
||||
user.read_requests.push_back(std::move(content));
|
||||
read_req::populate_read_req_queue(user.pubkey, std::move(content));
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user