aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/test/example/common
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /library/cpp/messagebus/test/example/common
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
downloadydb-1f553f46fb4f3c5eec631352cdd900a0709016af.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/test/example/common')
-rw-r--r--library/cpp/messagebus/test/example/common/messages.proto30
-rw-r--r--library/cpp/messagebus/test/example/common/proto.cpp24
-rw-r--r--library/cpp/messagebus/test/example/common/proto.h24
-rw-r--r--library/cpp/messagebus/test/example/common/ya.make24
4 files changed, 51 insertions, 51 deletions
diff --git a/library/cpp/messagebus/test/example/common/messages.proto b/library/cpp/messagebus/test/example/common/messages.proto
index 16b858fc77..12cdf38fb5 100644
--- a/library/cpp/messagebus/test/example/common/messages.proto
+++ b/library/cpp/messagebus/test/example/common/messages.proto
@@ -1,15 +1,15 @@
-package NCalculator;
-
-message TRequestSumRecord {
- required int32 A = 1;
- required int32 B = 2;
-}
-
-message TRequestMulRecord {
- required int32 A = 1;
- required int32 B = 2;
-}
-
-message TResponseRecord {
- required int32 Result = 1;
-}
+package NCalculator;
+
+message TRequestSumRecord {
+ required int32 A = 1;
+ required int32 B = 2;
+}
+
+message TRequestMulRecord {
+ required int32 A = 1;
+ required int32 B = 2;
+}
+
+message TResponseRecord {
+ required int32 Result = 1;
+}
diff --git a/library/cpp/messagebus/test/example/common/proto.cpp b/library/cpp/messagebus/test/example/common/proto.cpp
index 1d18aa77ea..3531e3d06c 100644
--- a/library/cpp/messagebus/test/example/common/proto.cpp
+++ b/library/cpp/messagebus/test/example/common/proto.cpp
@@ -1,12 +1,12 @@
-#include "proto.h"
-
-using namespace NCalculator;
-using namespace NBus;
-
-TCalculatorProtocol::TCalculatorProtocol()
- : TBusBufferProtocol("Calculator", 34567)
-{
- RegisterType(new TRequestSum);
- RegisterType(new TRequestMul);
- RegisterType(new TResponse);
-}
+#include "proto.h"
+
+using namespace NCalculator;
+using namespace NBus;
+
+TCalculatorProtocol::TCalculatorProtocol()
+ : TBusBufferProtocol("Calculator", 34567)
+{
+ RegisterType(new TRequestSum);
+ RegisterType(new TRequestMul);
+ RegisterType(new TResponse);
+}
diff --git a/library/cpp/messagebus/test/example/common/proto.h b/library/cpp/messagebus/test/example/common/proto.h
index a151aac468..f9fbd5ce56 100644
--- a/library/cpp/messagebus/test/example/common/proto.h
+++ b/library/cpp/messagebus/test/example/common/proto.h
@@ -1,17 +1,17 @@
-#pragma once
-
+#pragma once
+
#include <library/cpp/messagebus/test/example/common/messages.pb.h>
-
+
#include <library/cpp/messagebus/ybus.h>
#include <library/cpp/messagebus/protobuf/ybusbuf.h>
-namespace NCalculator {
- typedef ::NBus::TBusBufferMessage<TRequestSumRecord, 1> TRequestSum;
- typedef ::NBus::TBusBufferMessage<TRequestMulRecord, 2> TRequestMul;
- typedef ::NBus::TBusBufferMessage<TResponseRecord, 3> TResponse;
-
+namespace NCalculator {
+ typedef ::NBus::TBusBufferMessage<TRequestSumRecord, 1> TRequestSum;
+ typedef ::NBus::TBusBufferMessage<TRequestMulRecord, 2> TRequestMul;
+ typedef ::NBus::TBusBufferMessage<TResponseRecord, 3> TResponse;
+
struct TCalculatorProtocol: public ::NBus::TBusBufferProtocol {
- TCalculatorProtocol();
- };
-
-}
+ TCalculatorProtocol();
+ };
+
+}
diff --git a/library/cpp/messagebus/test/example/common/ya.make b/library/cpp/messagebus/test/example/common/ya.make
index 4da16608fc..14f48ff6c0 100644
--- a/library/cpp/messagebus/test/example/common/ya.make
+++ b/library/cpp/messagebus/test/example/common/ya.make
@@ -1,15 +1,15 @@
-LIBRARY(messagebus_test_example_common)
-
+LIBRARY(messagebus_test_example_common)
+
OWNER(g:messagebus)
-
-PEERDIR(
+
+PEERDIR(
library/cpp/messagebus
library/cpp/messagebus/protobuf
-)
-
-SRCS(
- proto.cpp
- messages.proto
-)
-
-END()
+)
+
+SRCS(
+ proto.cpp
+ messages.proto
+)
+
+END()