aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/grpc/client/grpc_client_low.h
diff options
context:
space:
mode:
authordcherednik <dcherednik@ydb.tech>2023-07-19 13:45:44 +0300
committerdcherednik <dcherednik@ydb.tech>2023-07-19 13:45:44 +0300
commitb03dce345d49158a866df832fc0e4cd257893146 (patch)
treed5ec30e2b78ff1cef7cc9c3fd50c56791f3c6b62 /library/cpp/grpc/client/grpc_client_low.h
parente3dee9bc4c69b09540ef88df8b4d8f988d8b58b2 (diff)
downloadydb-b03dce345d49158a866df832fc0e4cd257893146.tar.gz
Check the kqp session is destroyed during intermediate node stuck. KIKIMR-18250
Diffstat (limited to 'library/cpp/grpc/client/grpc_client_low.h')
-rw-r--r--library/cpp/grpc/client/grpc_client_low.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/library/cpp/grpc/client/grpc_client_low.h b/library/cpp/grpc/client/grpc_client_low.h
index bf0f8e0f9f..037463cb78 100644
--- a/library/cpp/grpc/client/grpc_client_low.h
+++ b/library/cpp/grpc/client/grpc_client_low.h
@@ -387,16 +387,21 @@ private:
bool Replied_ = false;
};
-template<class TResponse>
-class IStreamRequestReadProcessor : public TThrRefBase {
+class IStreamRequestCtrl : public TThrRefBase {
public:
- using TPtr = TIntrusivePtr<IStreamRequestReadProcessor>;
- using TReadCallback = std::function<void(TGrpcStatus&&)>;
+ using TPtr = TIntrusivePtr<IStreamRequestCtrl>;
/**
* Asynchronously cancel the request
*/
virtual void Cancel() = 0;
+};
+
+template<class TResponse>
+class IStreamRequestReadProcessor : public IStreamRequestCtrl {
+public:
+ using TPtr = TIntrusivePtr<IStreamRequestReadProcessor>;
+ using TReadCallback = std::function<void(TGrpcStatus&&)>;
/**
* Scheduled initial server metadata read from the stream