mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Optimized string passing with string_view.
This commit is contained in:
@@ -58,7 +58,7 @@ void user_session_handler::on_message(sock::socket_session *session, const std::
|
||||
if (itr != usr::pending_challenges.end())
|
||||
{
|
||||
std::string userpubkey;
|
||||
const std::string &original_challenge = itr->second;
|
||||
std::string_view original_challenge = itr->second;
|
||||
if (usr::verify_user_challenge_response(userpubkey, message, original_challenge) == 0)
|
||||
{
|
||||
// Challenge verification successful.
|
||||
|
||||
Reference in New Issue
Block a user