From 441abf1e6a15a39f1ef7bf5e4ee2a4a43bff327b Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Thu, 20 Jan 2022 05:18:00 +0000 Subject: [PATCH] Added names and ready notice --- json.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/json.cpp b/json.cpp index 1e51602..3e1ad07 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)); } @@ -393,9 +393,9 @@ std::string RejectMessage::as_string() { return "{\"type\": \"REJECT\", \"product\": \"" + this->product + - "\", \"error\": \"" + this->error + - "\", \"sequence\": " + std::to_string(this->sequence) + - ", \"timestamp\": " + std::to_string(this->timestamp) + "}"; + "\", \"error\": \"" + this->error + + "\", \"sequence\": " + std::to_string(this->sequence) + + ", \"timestamp\": " + std::to_string(this->timestamp) + "}"; } TradeMessage::TradeMessage(MessageTypes type, std::string product, double price, -- Gitblit v1.9.3