mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Compilation time improvements. (#52)
* Precompiled header for all common library headers (with cmake 3.16rc3). * Divided cmake build into shared libraries. * Added gold linker support. * Separated websockets lambda expressions to an independent file.
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <boost/beast/core.hpp>
|
||||
#include <boost/beast/websocket.hpp>
|
||||
#include <boost/asio.hpp>
|
||||
#include "../pchheader.hpp"
|
||||
#include "../util.hpp"
|
||||
#include "../sock/socket_session.hpp"
|
||||
#include "../proc.hpp"
|
||||
#include "../hplog.hpp"
|
||||
#include "../jsonschema/usrmsg_helpers.hpp"
|
||||
#include "../sock/socket_session.hpp"
|
||||
#include "../sock/socket_message.hpp"
|
||||
#include "usr.hpp"
|
||||
#include "user_session_handler.hpp"
|
||||
|
||||
@@ -17,17 +13,6 @@ namespace beast = boost::beast;
|
||||
namespace usr
|
||||
{
|
||||
|
||||
user_outbound_message::user_outbound_message(std::string &&_msg)
|
||||
{
|
||||
msg = std::move(_msg);
|
||||
}
|
||||
|
||||
// Returns the buffer that should be written to the socket.
|
||||
std::string_view user_outbound_message::buffer()
|
||||
{
|
||||
return msg;
|
||||
}
|
||||
|
||||
/**
|
||||
* This gets hit every time a client connects to HP via the public port (configured in contract config).
|
||||
*/
|
||||
@@ -98,8 +83,6 @@ void user_session_handler::on_close(sock::socket_session<user_outbound_message>
|
||||
// Session belongs to an authed user.
|
||||
else if (session->flags[util::SESSION_FLAG::USER_AUTHED])
|
||||
{
|
||||
// Wait for SC process completion before we remove existing user.
|
||||
proc::await_contract_execution();
|
||||
remove_user(session->uniqueid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user