aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/message.h
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2020-05-29 22:08:19 -0400
committerLee Clagett <code@leeclagett.com>2020-08-14 19:46:59 +0000
commit60627c9f24f5c322c59abee7c8e9e03a2b2ccf5a (patch)
treea0dee7bae6708f24732aa8ed0e3da39de4729a8f /src/rpc/message.h
parentFix pruned tx for ZMQ's GetBlocksFast (diff)
downloadmonero-60627c9f24f5c322c59abee7c8e9e03a2b2ccf5a.tar.xz
Switch to insitu parsing for ZMQ-JSON; GetBlocksFast reads 13%+ faster
Diffstat (limited to 'src/rpc/message.h')
-rw-r--r--src/rpc/message.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rpc/message.h b/src/rpc/message.h
index b858a5913..04bf1a111 100644
--- a/src/rpc/message.h
+++ b/src/rpc/message.h
@@ -72,9 +72,7 @@ namespace rpc
public:
~FullMessage() { }
- FullMessage(FullMessage&& rhs) noexcept : doc(std::move(rhs.doc)) { }
-
- FullMessage(const std::string& json_string, bool request=false);
+ FullMessage(std::string&& json_string, bool request=false);
std::string getRequestType() const;
@@ -91,10 +89,13 @@ namespace rpc
private:
FullMessage() = default;
+ FullMessage(const FullMessage&) = delete;
+ FullMessage& operator=(const FullMessage&) = delete;
FullMessage(const std::string& request, Message* message);
FullMessage(Message* message);
+ std::string contents;
rapidjson::Document doc;
};