aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/core
diff options
context:
space:
mode:
authortimestep <timestep@yandex-team.ru>2022-02-10 16:49:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:17 +0300
commit30f4921b0fa8722e5531e72cb40a93b526f6973a (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/actors/core
parent38b4bd28ca420294f532ac7ca6b2770d60e3dfd0 (diff)
downloadydb-30f4921b0fa8722e5531e72cb40a93b526f6973a.tar.gz
Restoring authorship annotation for <timestep@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/actors/core')
-rw-r--r--library/cpp/actors/core/actor_coroutine.h2
-rw-r--r--library/cpp/actors/core/actor_coroutine_ut.cpp4
-rw-r--r--library/cpp/actors/core/ask.cpp2
-rw-r--r--library/cpp/actors/core/ask_ut.cpp12
-rw-r--r--library/cpp/actors/core/event_pb_payload_ut.cpp2
-rw-r--r--library/cpp/actors/core/scheduler_actor_ut.cpp2
6 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/actors/core/actor_coroutine.h b/library/cpp/actors/core/actor_coroutine.h
index 71f020bc12..6bcb768eaf 100644
--- a/library/cpp/actors/core/actor_coroutine.h
+++ b/library/cpp/actors/core/actor_coroutine.h
@@ -99,7 +99,7 @@ namespace NActors {
return ev.GetTypeRewrite() == TEventType::EventType;
};
THolder<IEventHandle> event = WaitForSpecificEvent(filter, deadline);
- return THolder<typename TEventType::THandle>(static_cast<typename TEventType::THandle*>(event ? event.Release() : nullptr));
+ return THolder<typename TEventType::THandle>(static_cast<typename TEventType::THandle*>(event ? event.Release() : nullptr));
}
protected: // Actor System compatibility section
diff --git a/library/cpp/actors/core/actor_coroutine_ut.cpp b/library/cpp/actors/core/actor_coroutine_ut.cpp
index 9456ce67a1..951512b877 100644
--- a/library/cpp/actors/core/actor_coroutine_ut.cpp
+++ b/library/cpp/actors/core/actor_coroutine_ut.cpp
@@ -102,7 +102,7 @@ Y_UNIT_TEST_SUITE(ActorCoro) {
};
void Check(THolder<IEventBase> && message) {
- THolder<TActorSystemSetup> setup = MakeHolder<TActorSystemSetup>();
+ THolder<TActorSystemSetup> setup = MakeHolder<TActorSystemSetup>();
setup->NodeId = 0;
setup->ExecutorsCount = 1;
setup->Executors.Reset(new TAutoPtr<IExecutorPool>[setup->ExecutorsCount]);
@@ -117,7 +117,7 @@ Y_UNIT_TEST_SUITE(ActorCoro) {
TManualEvent doneEvent;
TAtomic itemsProcessed = 0;
- TActorId actor = actorSystem.Register(new TActorCoro(MakeHolder<TCoroActor>(doneEvent, itemsProcessed)));
+ TActorId actor = actorSystem.Register(new TActorCoro(MakeHolder<TCoroActor>(doneEvent, itemsProcessed)));
NanoSleep(3UL * 1000 * 1000 * 1000);
actorSystem.Send(actor, message.Release());
doneEvent.WaitI();
diff --git a/library/cpp/actors/core/ask.cpp b/library/cpp/actors/core/ask.cpp
index 7ba8d15e47..0054c9a906 100644
--- a/library/cpp/actors/core/ask.cpp
+++ b/library/cpp/actors/core/ask.cpp
@@ -69,6 +69,6 @@ namespace NActors {
TDuration timeout,
const NThreading::TPromise<THolder<IEventBase>>& promise)
{
- return MakeHolder<TAskActor>(expectedEventType, std::move(recipient), std::move(event), timeout, promise);
+ return MakeHolder<TAskActor>(expectedEventType, std::move(recipient), std::move(event), timeout, promise);
}
}
diff --git a/library/cpp/actors/core/ask_ut.cpp b/library/cpp/actors/core/ask_ut.cpp
index 3bf54035d4..e72ebdba9b 100644
--- a/library/cpp/actors/core/ask_ut.cpp
+++ b/library/cpp/actors/core/ask_ut.cpp
@@ -56,7 +56,7 @@ Y_UNIT_TEST_SUITE(AskActor) {
{
auto fut = runtime->GetAnyNodeActorSystem()->Ask<TEvents::TEvPong>(
pingpong,
- THolder(new TEvents::TEvPing));
+ THolder(new TEvents::TEvPing));
runtime->DispatchEvents();
fut.ExtractValueSync();
}
@@ -64,7 +64,7 @@ Y_UNIT_TEST_SUITE(AskActor) {
{
auto fut = runtime->GetAnyNodeActorSystem()->Ask<TEvents::TEvBlob>(
pingpong,
- THolder(new TEvents::TEvBlob("hello!")));
+ THolder(new TEvents::TEvBlob("hello!")));
runtime->DispatchEvents();
auto ev = fut.ExtractValueSync();
UNIT_ASSERT_VALUES_EQUAL(ev->Blob, "hello!");
@@ -73,7 +73,7 @@ Y_UNIT_TEST_SUITE(AskActor) {
{
auto fut = runtime->GetAnyNodeActorSystem()->Ask<IEventBase>(
pingpong,
- THolder(new TEvents::TEvPing));
+ THolder(new TEvents::TEvPing));
runtime->DispatchEvents();
auto ev = fut.ExtractValueSync();
UNIT_ASSERT_VALUES_EQUAL(ev->Type(), TEvents::TEvPong::EventType);
@@ -87,7 +87,7 @@ Y_UNIT_TEST_SUITE(AskActor) {
{
auto fut = runtime->GetAnyNodeActorSystem()->Ask<TEvents::TEvBlob>(
pingpong,
- THolder(new TEvents::TEvPing));
+ THolder(new TEvents::TEvPing));
runtime->DispatchEvents();
UNIT_ASSERT_EXCEPTION_CONTAINS(
fut.ExtractValueSync(),
@@ -103,7 +103,7 @@ Y_UNIT_TEST_SUITE(AskActor) {
{
auto fut = runtime->GetAnyNodeActorSystem()->Ask<TEvents::TEvPong>(
ping,
- THolder(new TEvents::TEvPing),
+ THolder(new TEvents::TEvPing),
TDuration::Seconds(1));
auto start = runtime->GetCurrentTime();
runtime->DispatchEvents({}, TDuration::Seconds(5));
@@ -117,7 +117,7 @@ Y_UNIT_TEST_SUITE(AskActor) {
{
auto fut = runtime->GetAnyNodeActorSystem()->Ask<IEventBase>(
ping,
- THolder(new TEvents::TEvPing),
+ THolder(new TEvents::TEvPing),
TDuration::Seconds(1));
auto start = runtime->GetCurrentTime();
runtime->DispatchEvents({}, TDuration::Seconds(5));
diff --git a/library/cpp/actors/core/event_pb_payload_ut.cpp b/library/cpp/actors/core/event_pb_payload_ut.cpp
index 8d0d50d885..eab007bc15 100644
--- a/library/cpp/actors/core/event_pb_payload_ut.cpp
+++ b/library/cpp/actors/core/event_pb_payload_ut.cpp
@@ -66,7 +66,7 @@ Y_UNIT_TEST_SUITE(TEventProtoWithPayload) {
}
UNIT_ASSERT_VALUES_EQUAL(chunkerRes, ser);
- THolder<IEventBase> ev2 = THolder(TEventTo::Load(buffers));
+ THolder<IEventBase> ev2 = THolder(TEventTo::Load(buffers));
TEventTo& msg2 = static_cast<TEventTo&>(*ev2);
UNIT_ASSERT_VALUES_EQUAL(msg2.Record.GetMeta(), msg.Record.GetMeta());
UNIT_ASSERT_EQUAL(msg2.GetPayload(msg2.Record.GetPayloadId(0)), msg.GetPayload(msg.Record.GetPayloadId(0)));
diff --git a/library/cpp/actors/core/scheduler_actor_ut.cpp b/library/cpp/actors/core/scheduler_actor_ut.cpp
index fff059ef94..09b7369d36 100644
--- a/library/cpp/actors/core/scheduler_actor_ut.cpp
+++ b/library/cpp/actors/core/scheduler_actor_ut.cpp
@@ -52,7 +52,7 @@ Y_UNIT_TEST_SUITE(SchedulerActor) {
};
void Test(TAtomicBase eventsTotalCount, ui32 scheduleDeltaMs) {
- THolder<TActorSystemSetup> setup = MakeHolder<TActorSystemSetup>();
+ THolder<TActorSystemSetup> setup = MakeHolder<TActorSystemSetup>();
setup->NodeId = 0;
setup->ExecutorsCount = 1;
setup->Executors.Reset(new TAutoPtr<IExecutorPool>[setup->ExecutorsCount]);