aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/message_status.h
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
commitc2a1af049e9deca890e9923abe64fe6c59060348 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/messagebus/message_status.h
parent1f553f46fb4f3c5eec631352cdd900a0709016af (diff)
downloadydb-c2a1af049e9deca890e9923abe64fe6c59060348.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/messagebus/message_status.h')
-rw-r--r--library/cpp/messagebus/message_status.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/messagebus/message_status.h b/library/cpp/messagebus/message_status.h
index d7611da4dc..e1878960b3 100644
--- a/library/cpp/messagebus/message_status.h
+++ b/library/cpp/messagebus/message_status.h
@@ -1,14 +1,14 @@
-#pragma once
-
+#pragma once
+
#include "codegen.h"
#include "defs.h"
#include <library/cpp/deprecated/enum_codegen/enum_codegen.h>
-
-namespace NBus {
-////////////////////////////////////////////////////////////////
-/// \brief Status of message communication
-
+
+namespace NBus {
+////////////////////////////////////////////////////////////////
+/// \brief Status of message communication
+
#define MESSAGE_STATUS_MAP(XX) \
XX(MESSAGE_OK, "OK") \
XX(MESSAGE_CONNECT_FAILED, "Connect failed") \
@@ -26,20 +26,20 @@ namespace NBus {
XX(MESSAGE_SERVICE_TOOMANY, "Locator failed to resolve address") \
XX(MESSAGE_SHUTDOWN, "Failure because of either session or connection shutdown") \
XX(MESSAGE_DONT_ASK, "Internal error code used by modules")
-
+
enum EMessageStatus {
MESSAGE_STATUS_MAP(ENUM_VALUE_GEN_NO_VALUE)
MESSAGE_STATUS_COUNT
};
-
+
ENUM_TO_STRING(EMessageStatus, MESSAGE_STATUS_MAP)
-
+
const char* MessageStatusDescription(EMessageStatus);
-
+
static inline const char* GetMessageStatus(EMessageStatus status) {
return ToCString(status);
}
-
+
// For lwtrace
struct TMessageStatusField {
typedef int TStoreType;
@@ -53,5 +53,5 @@ namespace NBus {
return value;
}
};
-
-} // ns
+
+} // ns