Read requests synchronous replies. (#361)

This commit is contained in:
Ravin Perera
2022-02-26 07:48:02 +05:30
committed by GitHub
parent d5f0c1e664
commit 5c349dfa95
14 changed files with 136 additions and 66 deletions

View File

@@ -148,10 +148,10 @@ namespace usr
if (!conf::cfg.contract.execute || conf::cfg.user.concurrent_read_requests == 0)
return 0;
std::string content;
if (parser.extract_read_request(content) != -1)
std::string id, content;
if (parser.extract_read_request(id, content) != -1)
{
if (read_req::populate_read_req_queue(user.pubkey, std::move(content)) == -1)
if (read_req::populate_read_req_queue(user.pubkey, std::move(id), std::move(content)) == -1)
{
LOG_WARNING << "Failed to enqueue read request.";
}