diff options
author | Alexey Efimov <xeno@prnwatch.com> | 2022-02-10 16:49:42 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:42 +0300 |
commit | 0fd1998e1b2369f50fb694556f817d3c7fef10c8 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/actors/core/interconnect.h | |
parent | 26e0e4fb5e5cd6b4d7f4c21f9fcd7978891bf946 (diff) | |
download | ydb-0fd1998e1b2369f50fb694556f817d3c7fef10c8.tar.gz |
Restoring authorship annotation for Alexey Efimov <xeno@prnwatch.com>. Commit 2 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 d71fe02c48..679a4b8cc6 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> {}; - }; + }; } |