Skip to content

Commit ec74a80

Browse files
kruallstanislav-shchetinin
authored andcommitted
Avoid using ExecutorThread instead of ActorContext's methods [ui-backend] (#14014)
1 parent 5b43b19 commit ec74a80

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

ydb/core/viewer/viewer.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,74 +70,74 @@ class TViewer : public TActorBootstrapped<TViewer>, public IViewer {
7070
}
7171
mon->RegisterActorPage({
7272
.RelPath = "viewer",
73-
.ActorSystem = ctx.ExecutorThread.ActorSystem,
73+
.ActorSystem = ctx.ActorSystem(),
7474
.ActorId = ctx.SelfID,
7575
.UseAuth = true,
7676
.AllowedSIDs = viewerAllowedSIDs,
7777
});
7878
mon->RegisterActorPage({
7979
.Title = "Viewer",
8080
.RelPath = "viewer/v2",
81-
.ActorSystem = ctx.ExecutorThread.ActorSystem,
81+
.ActorSystem = ctx.ActorSystem(),
8282
.ActorId = ctx.SelfID,
8383
});
8484
mon->RegisterActorPage({
8585
.Title = "Monitoring",
8686
.RelPath = "monitoring",
87-
.ActorSystem = ctx.ExecutorThread.ActorSystem,
87+
.ActorSystem = ctx.ActorSystem(),
8888
.ActorId = ctx.SelfID,
8989
.UseAuth = false,
9090
});
9191
mon->RegisterActorPage({
9292
.RelPath = "counters/hosts",
93-
.ActorSystem = ctx.ExecutorThread.ActorSystem,
93+
.ActorSystem = ctx.ActorSystem(),
9494
.ActorId = ctx.SelfID,
9595
.UseAuth = false,
9696
});
9797
mon->RegisterActorPage({
9898
.RelPath = "healthcheck",
99-
.ActorSystem = ctx.ExecutorThread.ActorSystem,
99+
.ActorSystem = ctx.ActorSystem(),
100100
.ActorId = ctx.SelfID,
101101
.UseAuth = false,
102102
});
103103
mon->RegisterActorPage({
104104
.RelPath = "vdisk",
105-
.ActorSystem = ctx.ExecutorThread.ActorSystem,
105+
.ActorSystem = ctx.ActorSystem(),
106106
.ActorId = ctx.SelfID,
107107
.UseAuth = true,
108108
.AllowedSIDs = monitoringAllowedSIDs,
109109
});
110110
mon->RegisterActorPage({
111111
.RelPath = "pdisk",
112-
.ActorSystem = ctx.ExecutorThread.ActorSystem,
112+
.ActorSystem = ctx.ActorSystem(),
113113
.ActorId = ctx.SelfID,
114114
.UseAuth = true,
115115
.AllowedSIDs = monitoringAllowedSIDs,
116116
});
117117
mon->RegisterActorPage({
118118
.RelPath = "operation",
119-
.ActorSystem = ctx.ExecutorThread.ActorSystem,
119+
.ActorSystem = ctx.ActorSystem(),
120120
.ActorId = ctx.SelfID,
121121
.UseAuth = true,
122122
.AllowedSIDs = monitoringAllowedSIDs,
123123
});
124124
mon->RegisterActorPage({
125125
.RelPath = "query",
126-
.ActorSystem = ctx.ExecutorThread.ActorSystem,
126+
.ActorSystem = ctx.ActorSystem(),
127127
.ActorId = ctx.SelfID,
128128
.UseAuth = true,
129129
.AllowedSIDs = monitoringAllowedSIDs,
130130
});
131131
mon->RegisterActorPage({
132132
.RelPath = "scheme",
133-
.ActorSystem = ctx.ExecutorThread.ActorSystem,
133+
.ActorSystem = ctx.ActorSystem(),
134134
.ActorId = ctx.SelfID,
135135
.UseAuth = true,
136136
.AllowedSIDs = viewerAllowedSIDs,
137137
});
138138
mon->RegisterActorPage({
139139
.RelPath = "storage",
140-
.ActorSystem = ctx.ExecutorThread.ActorSystem,
140+
.ActorSystem = ctx.ActorSystem(),
141141
.ActorId = ctx.SelfID,
142142
.UseAuth = true,
143143
.AllowedSIDs = viewerAllowedSIDs,

ydb/core/viewer/viewer_browse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class TJsonBrowse : public TActorBootstrapped<TJsonBrowse> {
137137
}
138138

139139
void Handle(NMon::TEvHttpInfoRes::TPtr &ev, const TActorContext &ctx) {
140-
ctx.ExecutorThread.Send(ev->Forward(Event->Sender));
140+
ctx.Send(ev->Forward(Event->Sender));
141141
Die(ctx);
142142
}
143143

ydb/core/viewer/viewer_metainfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class TJsonMetaInfo : public TActorBootstrapped<TJsonMetaInfo> {
5656
}
5757

5858
void Handle(NMon::TEvHttpInfoRes::TPtr &ev, const TActorContext &ctx) {
59-
ctx.ExecutorThread.Send(ev->Forward(Event->Sender));
59+
ctx.Send(ev->Forward(Event->Sender));
6060
Die(ctx);
6161
}
6262

0 commit comments

Comments
 (0)