diff options
author | Alexander Gololobov <davenger@yandex-team.com> | 2022-02-10 16:47:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:38 +0300 |
commit | fccc62e9bfdce9be2fe7e0f23479da3a5512211a (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/actors/interconnect | |
parent | 39608cdb86363c75ce55b2b9a69841c3b71f22cf (diff) | |
download | ydb-fccc62e9bfdce9be2fe7e0f23479da3a5512211a.tar.gz |
Restoring authorship annotation for Alexander Gololobov <davenger@yandex-team.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/actors/interconnect')
5 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/actors/interconnect/interconnect_handshake.cpp b/library/cpp/actors/interconnect/interconnect_handshake.cpp index ea09913bdd..9ede998d8e 100644 --- a/library/cpp/actors/interconnect/interconnect_handshake.cpp +++ b/library/cpp/actors/interconnect/interconnect_handshake.cpp @@ -98,10 +98,10 @@ namespace NActors { TInstant Deadline; public: - static constexpr IActor::EActivityType ActorActivityType() { - return IActor::INTERCONNECT_HANDSHAKE; - } - + static constexpr IActor::EActivityType ActorActivityType() { + return IActor::INTERCONNECT_HANDSHAKE; + } + THandshakeActor(TInterconnectProxyCommon::TPtr common, const TActorId& self, const TActorId& peer, ui32 nodeId, ui64 nextPacket, TString peerHostName, TSessionParams params) : TActorCoroImpl(StackSize, true, true) // allow unhandled poison pills and dtors diff --git a/library/cpp/actors/interconnect/interconnect_tcp_session.h b/library/cpp/actors/interconnect/interconnect_tcp_session.h index 846388edfc..7fc00dbcc5 100644 --- a/library/cpp/actors/interconnect/interconnect_tcp_session.h +++ b/library/cpp/actors/interconnect/interconnect_tcp_session.h @@ -518,10 +518,10 @@ namespace NActors { TInterconnectProxyCommon::TPtr Common; public: - static constexpr EActivityType ActorActivityType() { - return INTERCONNECT_SESSION_KILLER; - } - + static constexpr EActivityType ActorActivityType() { + return INTERCONNECT_SESSION_KILLER; + } + TInterconnectSessionKiller(TInterconnectProxyCommon::TPtr common) : Common(common) { diff --git a/library/cpp/actors/interconnect/load.cpp b/library/cpp/actors/interconnect/load.cpp index b40a01b3e8..2a8443da71 100644 --- a/library/cpp/actors/interconnect/load.cpp +++ b/library/cpp/actors/interconnect/load.cpp @@ -100,10 +100,10 @@ namespace NInterconnect { } public: - static constexpr IActor::EActivityType ActorActivityType() { + static constexpr IActor::EActivityType ActorActivityType() { return IActor::INTERCONNECT_LOAD_RESPONDER; - } - + } + TLoadResponderMasterActor() {} @@ -150,10 +150,10 @@ namespace NInterconnect { std::shared_ptr<std::atomic_uint64_t> Traffic; public: - static constexpr IActor::EActivityType ActorActivityType() { + static constexpr IActor::EActivityType ActorActivityType() { return IActor::INTERCONNECT_LOAD_ACTOR; - } - + } + TLoadActor(const TLoadParams& params) : Params(params) {} diff --git a/library/cpp/actors/interconnect/poller_actor.cpp b/library/cpp/actors/interconnect/poller_actor.cpp index 9bf3bd1d8d..e75cbcaef4 100644 --- a/library/cpp/actors/interconnect/poller_actor.cpp +++ b/library/cpp/actors/interconnect/poller_actor.cpp @@ -246,10 +246,10 @@ namespace NActors { std::shared_ptr<TPollerThread> PollerThread; public: - static constexpr IActor::EActivityType ActorActivityType() { - return IActor::INTERCONNECT_POLLER; - } - + static constexpr IActor::EActivityType ActorActivityType() { + return IActor::INTERCONNECT_POLLER; + } + void Bootstrap() { PollerThread = std::make_shared<TPollerThread>(TlsActivationContext->ExecutorThread.ActorSystem); Become(&TPollerActor::StateFunc); diff --git a/library/cpp/actors/interconnect/ut/lib/node.h b/library/cpp/actors/interconnect/ut/lib/node.h index 95666d3f7a..ff30b1445e 100644 --- a/library/cpp/actors/interconnect/ut/lib/node.h +++ b/library/cpp/actors/interconnect/ut/lib/node.h @@ -21,10 +21,10 @@ public: TChannelsConfig channelsSettings = TChannelsConfig(), ui32 numDynamicNodes = 0, ui32 numThreads = 1) { TActorSystemSetup setup; - setup.NodeId = nodeId; - setup.ExecutorsCount = 1; + setup.NodeId = nodeId; + setup.ExecutorsCount = 1; setup.Executors.Reset(new TAutoPtr<IExecutorPool>[setup.ExecutorsCount]); - for (ui32 i = 0; i < setup.ExecutorsCount; ++i) { + for (ui32 i = 0; i < setup.ExecutorsCount; ++i) { setup.Executors[i].Reset(new TBasicExecutorPool(i, numThreads, 20 /* magic number */)); } setup.Scheduler.Reset(new TBasicSchedulerThread()); |