mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
gRPC: Cleanup streaming callback. DataCount storage is not necessary
This commit is contained in:
parent
ac18bc20ec
commit
90af7a2e6b
@ -129,7 +129,7 @@ private:
|
|||||||
|
|
||||||
//==================================================================================================
|
//==================================================================================================
|
||||||
//
|
//
|
||||||
// Templated bi-directional *streaming* gRPC-callback calling service implementation callbacks
|
// Templated server *streaming* gRPC-callback calling service implementation callbacks
|
||||||
//
|
//
|
||||||
// The streaming callback needs a state handler for setting up and maintaining order.
|
// The streaming callback needs a state handler for setting up and maintaining order.
|
||||||
//
|
//
|
||||||
@ -137,8 +137,6 @@ private:
|
|||||||
// 1. Default Constructor
|
// 1. Default Constructor
|
||||||
// 2. grpc::Status init(const grpc::Message* request)
|
// 2. grpc::Status init(const grpc::Message* request)
|
||||||
//
|
//
|
||||||
//==================================================================================================
|
|
||||||
|
|
||||||
//==================================================================================================
|
//==================================================================================================
|
||||||
template<typename ServiceT, typename RequestT, typename ReplyT, typename StateHandlerT>
|
template<typename ServiceT, typename RequestT, typename ReplyT, typename StateHandlerT>
|
||||||
class RiaGrpcStreamCallback : public RiaGrpcRequestCallback<ServiceT, RequestT, ReplyT>
|
class RiaGrpcStreamCallback : public RiaGrpcRequestCallback<ServiceT, RequestT, ReplyT>
|
||||||
@ -165,7 +163,6 @@ private:
|
|||||||
ResponseWriterT m_responder;
|
ResponseWriterT m_responder;
|
||||||
MethodImplT m_methodImpl;
|
MethodImplT m_methodImpl;
|
||||||
MethodRequestT m_methodRequest;
|
MethodRequestT m_methodRequest;
|
||||||
size_t m_dataCount; // This is used to keep track of progress. Only one item is sent for each invocation.
|
|
||||||
std::unique_ptr<StateHandlerT> m_stateHandler;
|
std::unique_ptr<StateHandlerT> m_stateHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -161,7 +161,6 @@ RiaGrpcStreamCallback<ServiceT, RequestT, ReplyT, StateHandlerT>::RiaGrpcStreamC
|
|||||||
, m_responder(&m_context)
|
, m_responder(&m_context)
|
||||||
, m_methodImpl(methodImpl)
|
, m_methodImpl(methodImpl)
|
||||||
, m_methodRequest(methodRequest)
|
, m_methodRequest(methodRequest)
|
||||||
, m_dataCount(0u)
|
|
||||||
, m_stateHandler(stateHandler)
|
, m_stateHandler(stateHandler)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user