From 9ae8b92ba549ab916c88e9004a95c1ed0cd16059 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Wed, 19 Jan 2022 10:48:57 +0000 Subject: [PATCH] Added loop to click trader and hit self for perf testing --- json.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/json.cpp b/json.cpp index d486ddc..1e51602 100644 --- a/json.cpp +++ b/json.cpp @@ -192,7 +192,7 @@ RejectMessage* reject(rapidjson::Value& d) { - return new RejectMessage(mapTypes[d["type"].GetString()], "", + return new RejectMessage(mapTypes[d["type"].GetString()], "", d["error"].GetString(), uint64_t(0), double(0)); } @@ -392,7 +392,7 @@ std::string RejectMessage::as_string() { - return "{\"type\": \"REJECT\", \"product\": \"" + this->product = + return "{\"type\": \"REJECT\", \"product\": \"" + this->product + "\", \"error\": \"" + this->error + "\", \"sequence\": " + std::to_string(this->sequence) + ", \"timestamp\": " + std::to_string(this->timestamp) + "}"; -- Gitblit v1.9.3