@@ -45,10 +45,16 @@ void TLocalProxyActor::Handle(TEvYdbProxy::TEvAlterTopicRequest::TPtr& ev) {
45
45
*consumer = c;
46
46
}
47
47
48
- auto callback = [replyTo = ev->Sender , cookie = ev->Cookie , path = path, this ](Ydb::StatusIds::StatusCode statusCode, const google::protobuf::Message*) {
48
+ auto callback = [
49
+ actorSystem = TActivationContext::ActorSystem (),
50
+ replyTo = ev->Sender ,
51
+ cookie = ev->Cookie ,
52
+ path = path
53
+ ](Ydb::StatusIds::StatusCode statusCode, const google::protobuf::Message*) {
49
54
NYdb::NIssue::TIssues issues;
50
55
NYdb::TStatus status (static_cast <NYdb::EStatus>(statusCode), std::move (issues));
51
- Send (replyTo, new TEvYdbProxy::TEvAlterTopicResponse (std::move (status)), 0 , cookie);
56
+
57
+ actorSystem->Send (replyTo, new TEvYdbProxy::TEvAlterTopicResponse (std::move (status)), 0 , cookie);
52
58
};
53
59
54
60
NGRpcService::DoAlterTopicRequest (std::make_unique<TLocalProxyRequest>(path, Database, std::move (request), callback), *this );
@@ -65,7 +71,12 @@ void TLocalProxyActor::Handle(TEvYdbProxy::TEvDescribeTopicRequest::TPtr& ev) {
65
71
auto request = std::make_unique<Ydb::Topic::DescribeTopicRequest>();
66
72
request.get ()->set_path (TStringBuilder () << " /" << Database << path);
67
73
68
- auto callback = [replyTo = ev->Sender , cookie = ev->Cookie , path = path, this ](Ydb::StatusIds::StatusCode statusCode, const google::protobuf::Message* result) {
74
+ auto callback = [
75
+ actorSystem = TActivationContext::ActorSystem (),
76
+ replyTo = ev->Sender ,
77
+ cookie = ev->Cookie ,
78
+ path = path
79
+ ](Ydb::StatusIds::StatusCode statusCode, const google::protobuf::Message* result) {
69
80
NYdb::NIssue::TIssues issues;
70
81
Ydb::Topic::DescribeTopicResult describe;
71
82
if (statusCode == Ydb::StatusIds::StatusCode::StatusIds_StatusCode_SUCCESS) {
@@ -80,7 +91,8 @@ void TLocalProxyActor::Handle(TEvYdbProxy::TEvDescribeTopicRequest::TPtr& ev) {
80
91
81
92
NYdb::TStatus status (static_cast <NYdb::EStatus>(statusCode), std::move (issues));
82
93
NYdb::NTopic::TDescribeTopicResult r (std::move (status), std::move (describe));
83
- Send (replyTo, new TEvYdbProxy::TEvDescribeTopicResponse (r), 0 , cookie);
94
+
95
+ actorSystem->Send (replyTo, new TEvYdbProxy::TEvDescribeTopicResponse (r), 0 , cookie);
84
96
};
85
97
86
98
NGRpcService::DoDescribeTopicRequest (std::make_unique<TLocalProxyRequest>(path, Database, std::move (request), callback), *this );
@@ -97,7 +109,12 @@ void TLocalProxyActor::Handle(TEvYdbProxy::TEvDescribePathRequest::TPtr& ev) {
97
109
auto request = std::make_unique<Ydb::Scheme::DescribePathRequest>();
98
110
request.get ()->set_path (TStringBuilder () << " /" << Database << path);
99
111
100
- auto callback = [replyTo = ev->Sender , cookie = ev->Cookie , path = path, this ](Ydb::StatusIds::StatusCode statusCode, const google::protobuf::Message* result) {
112
+ auto callback = [
113
+ actorSystem = TActivationContext::ActorSystem (),
114
+ replyTo = ev->Sender ,
115
+ cookie = ev->Cookie ,
116
+ path = path
117
+ ](Ydb::StatusIds::StatusCode statusCode, const google::protobuf::Message* result) {
101
118
NYdb::NIssue::TIssues issues;
102
119
NYdb::NScheme::TSchemeEntry entry;
103
120
if (statusCode == Ydb::StatusIds::StatusCode::StatusIds_StatusCode_SUCCESS) {
@@ -112,7 +129,8 @@ void TLocalProxyActor::Handle(TEvYdbProxy::TEvDescribePathRequest::TPtr& ev) {
112
129
113
130
NYdb::TStatus status (static_cast <NYdb::EStatus>(statusCode), std::move (issues));
114
131
NYdb::NScheme::TDescribePathResult r (std::move (status), std::move (entry));
115
- Send (replyTo, new TEvYdbProxy::TEvDescribePathResponse (r), 0 , cookie);
132
+
133
+ actorSystem->Send (replyTo, new TEvYdbProxy::TEvDescribePathResponse (r), 0 , cookie);
116
134
};
117
135
118
136
NGRpcService::DoDescribePathRequest (std::make_unique<TLocalProxyRequest>(path, Database, std::move (request), callback), *this );
0 commit comments