summaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/debug_receiver/debug_receiver_proto.cpp
diff options
context:
space:
mode:
authornga <[email protected]>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /library/cpp/messagebus/debug_receiver/debug_receiver_proto.cpp
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/debug_receiver/debug_receiver_proto.cpp')
-rw-r--r--library/cpp/messagebus/debug_receiver/debug_receiver_proto.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/messagebus/debug_receiver/debug_receiver_proto.cpp b/library/cpp/messagebus/debug_receiver/debug_receiver_proto.cpp
index 0c74f9ecc38..50990dae035 100644
--- a/library/cpp/messagebus/debug_receiver/debug_receiver_proto.cpp
+++ b/library/cpp/messagebus/debug_receiver/debug_receiver_proto.cpp
@@ -1,20 +1,20 @@
-#include "debug_receiver_proto.h"
-
-using namespace NBus;
-
-TDebugReceiverProtocol::TDebugReceiverProtocol()
- : TBusProtocol("debug receiver", 0)
-{
-}
-
+#include "debug_receiver_proto.h"
+
+using namespace NBus;
+
+TDebugReceiverProtocol::TDebugReceiverProtocol()
+ : TBusProtocol("debug receiver", 0)
+{
+}
+
void TDebugReceiverProtocol::Serialize(const NBus::TBusMessage*, TBuffer&) {
Y_FAIL("it is receiver only");
-}
-
+}
+
TAutoPtr<NBus::TBusMessage> TDebugReceiverProtocol::Deserialize(ui16, TArrayRef<const char> payload) {
- THolder<TDebugReceiverMessage> r(new TDebugReceiverMessage(ECreateUninitialized()));
-
- r->Payload.Append(payload.data(), payload.size());
-
- return r.Release();
-}
+ THolder<TDebugReceiverMessage> r(new TDebugReceiverMessage(ECreateUninitialized()));
+
+ r->Payload.Append(payload.data(), payload.size());
+
+ return r.Release();
+}