aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/testlib/test_runtime.cpp
diff options
context:
space:
mode:
authorasatarin <asatarin@yandex-team.ru>2022-02-10 16:47:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:30 +0300
commit4ca29390ac54b7877174de542de47532c67453b5 (patch)
tree14f6fc2edf989ce65a7555e8882e3eae3e9306fe /library/cpp/actors/testlib/test_runtime.cpp
parent05f59b2581f074c756adaee6b260014ac3a0c3ec (diff)
downloadydb-4ca29390ac54b7877174de542de47532c67453b5.tar.gz
Restoring authorship annotation for <asatarin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/actors/testlib/test_runtime.cpp')
-rw-r--r--library/cpp/actors/testlib/test_runtime.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/actors/testlib/test_runtime.cpp b/library/cpp/actors/testlib/test_runtime.cpp
index 6fa25b9965..eea97fb613 100644
--- a/library/cpp/actors/testlib/test_runtime.cpp
+++ b/library/cpp/actors/testlib/test_runtime.cpp
@@ -12,7 +12,7 @@
#include <library/cpp/actors/interconnect/interconnect.h>
#include <library/cpp/actors/interconnect/interconnect_tcp_proxy.h>
#include <library/cpp/actors/interconnect/interconnect_proxy_wrapper.h>
-
+
#include <util/generic/maybe.h>
#include <util/generic/bt_exception.h>
#include <util/random/mersenne.h>
@@ -23,7 +23,7 @@ bool VERBOSE = false;
const bool PRINT_EVENT_BODY = false;
namespace {
-
+
TString MakeClusterId() {
pid_t pid = getpid();
TStringBuilder uuid;
@@ -457,7 +457,7 @@ namespace NActors {
TTestActorRuntimeBase::TTestActorRuntimeBase(ui32 nodeCount, ui32 dataCenterCount, bool useRealThreads)
: ScheduledCount(0)
- , ScheduledLimit(100000)
+ , ScheduledLimit(100000)
, MainThreadId(TThread::CurrentThreadId())
, ClusterUUID(MakeClusterId())
, FirstNodeId(NextNodeId)
@@ -472,7 +472,7 @@ namespace NActors {
, TimeProvider(new TTimeProvider(*this))
, ShouldContinue()
, CurrentTimestamp(0)
- , DispatchTimeout(DEFAULT_DISPATCH_TIMEOUT)
+ , DispatchTimeout(DEFAULT_DISPATCH_TIMEOUT)
, ReschedulingDelay(TDuration::MicroSeconds(0))
, ObserverFunc(&TTestActorRuntimeBase::DefaultObserverFunc)
, ScheduledEventsSelectorFunc(&CollapsedTimeScheduledEventsSelector)
@@ -1832,12 +1832,12 @@ namespace NActors {
while (Context->Queue->Head()) {
HasReply = false;
ctx.ExecutorThread.Send(GetForwardedEvent().Release());
- int count = 100;
- while (!HasReply && count > 0) {
+ int count = 100;
+ while (!HasReply && count > 0) {
try {
Runtime->DispatchEvents(DelegateeOptions);
} catch (TEmptyEventQueueException&) {
- count--;
+ count--;
Cerr << "No reply" << Endl;
}
}