diff --git a/src/memgraph_bolt.cpp b/src/memgraph_bolt.cpp index db1051f5f..2dff1b413 100644 --- a/src/memgraph_bolt.cpp +++ b/src/memgraph_bolt.cpp @@ -108,6 +108,9 @@ int main(int argc, char **argv) { << stacktrace.dump() << std::endl; }); + // Initialize bolt session data (Dbms and QueryEngine). + session_data_t session_data; + // Initialize endpoint. endpoint_t endpoint; try { @@ -129,9 +132,6 @@ int main(int argc, char **argv) { LOG(FATAL) << "Cannot listen on socket!"; } - // Initialize bolt session data (Dbms and QueryEngine). - session_data_t session_data; - // Initialize server. bolt_server_t server(std::move(socket), session_data);