From f99dcdf422310400fe9f20f61697328e87485a34 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Wed, 19 Jan 2022 09:57:14 +0000 Subject: [PATCH] Insertion sort sides instead of hashmap --- protocol.hpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/protocol.hpp b/protocol.hpp index 1893fd0..a1a371d 100644 --- a/protocol.hpp +++ b/protocol.hpp @@ -3,6 +3,7 @@ #include "book.hpp" #include "json.hpp" +#include <deque> #include <string> #include <unordered_map> @@ -12,6 +13,9 @@ // Catchup utilities std::unordered_map<std::string, book::Book> recoverBook(); +void createWebSocket(); +std::deque<json::Message*> +catchUp(std::unordered_map<std::string, book::Book>& bs); // Outgoing messages json::Message* addOrder(json::AddMessage& order); -- Gitblit v1.9.3