diff options
author | Alexey Efimov <xeno@prnwatch.com> | 2022-02-10 16:49:41 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:41 +0300 |
commit | 26e0e4fb5e5cd6b4d7f4c21f9fcd7978891bf946 (patch) | |
tree | d34555f21d4d9f94f84d460e55b77d7eb41a953c /library/cpp/actors/core/interconnect.h | |
parent | ca3252a147a429eac4ba8221857493c58dcd09b5 (diff) | |
download | ydb-26e0e4fb5e5cd6b4d7f4c21f9fcd7978891bf946.tar.gz |
Restoring authorship annotation for Alexey Efimov <xeno@prnwatch.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/actors/core/interconnect.h')
-rw-r--r-- | library/cpp/actors/core/interconnect.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/actors/core/interconnect.h b/library/cpp/actors/core/interconnect.h index 679a4b8cc6..d71fe02c48 100644 --- a/library/cpp/actors/core/interconnect.h +++ b/library/cpp/actors/core/interconnect.h @@ -60,7 +60,7 @@ namespace NActors { // protobuf-parser ctor explicit TNodeLocation(const NActorsInterconnect::TNodeLocation& location); - + // serialized protobuf ctor static constexpr struct TFromSerialized {} FromSerialized {}; TNodeLocation(TFromSerialized, const TString& s); @@ -114,7 +114,7 @@ namespace NActors { friend bool operator > (const TNodeLocation& x, const TNodeLocation& y) { return x.Compare(y) > 0; } friend bool operator >=(const TNodeLocation& x, const TNodeLocation& y) { return x.Compare(y) >= 0; } }; - + struct TEvInterconnect { enum EEv { EvForward = EventSpaceBegin(TEvents::ES_INTERCONNECT), @@ -177,7 +177,7 @@ namespace NActors { struct TEvListNodes: public TEventLocal<TEvListNodes, EvListNodes> { }; - + struct TNodeInfo { ui32 NodeId; TString Address; @@ -185,10 +185,10 @@ namespace NActors { TString ResolveHost; ui16 Port; TNodeLocation Location; - - TNodeInfo() = default; - TNodeInfo(const TNodeInfo&) = default; - TNodeInfo& operator =(const TNodeInfo&) = default; + + TNodeInfo() = default; + TNodeInfo(const TNodeInfo&) = default; + TNodeInfo& operator =(const TNodeInfo&) = default; TNodeInfo(ui32 nodeId, const TString& address, const TString& host, @@ -203,12 +203,12 @@ namespace NActors { , Location(location) { } - + operator ui32() const { return NodeId; } }; - + struct TEvNodesInfo: public TEventLocal<TEvNodesInfo, EvNodesInfo> { TVector<TNodeInfo> Nodes; @@ -218,8 +218,8 @@ namespace NActors { return &x; } return nullptr; - } - }; + } + }; struct TEvDisconnect; @@ -251,5 +251,5 @@ namespace NActors { struct TEvPoisonSession : TEventLocal<TEvPoisonSession, EvPoisonSession> {}; struct TEvTerminate : TEventLocal<TEvTerminate, EvTerminate> {}; - }; + }; } |