Enabled and fixed compiler warnings. (#359)

This commit is contained in:
Ravin Perera
2022-01-28 16:03:34 +05:30
committed by GitHub
parent cf695af30b
commit 5cef95c9f6
28 changed files with 132 additions and 102 deletions

View File

@@ -152,7 +152,9 @@ namespace usr
if (parser.extract_read_request(content) != -1)
{
if (read_req::populate_read_req_queue(user.pubkey, std::move(content)) == -1)
{
LOG_WARNING << "Failed to enqueue read request.";
}
return 0;
}
else
@@ -402,7 +404,7 @@ namespace usr
int remove_user(const std::string &pubkey)
{
std::scoped_lock<std::mutex> lock(ctx.users_mutex);
const auto itr = ctx.users.erase(pubkey);
ctx.users.erase(pubkey);
return 0;
}