Skip to content

Commit

Permalink
fix: Compilation of RPCHandlerSenderOperation constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Tradias committed Dec 14, 2024
1 parent f3963d9 commit e663263
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/agrpc/detail/register_sender_rpc_handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ struct InlineSchedulerEnv
}
};

template <class ServerRPC, class RPCHandler, class StopToken>
struct RegisterRPCHandlerSenderOperationBase;
template <class ServerRPC, class RPCHandler, class Receiver>
class RPCHandlerSenderOperation;

template <class ServerRPC, class RPCHandler>
class [[nodiscard]] RPCHandlerSender : public detail::SenderOf<void()>
Expand Down Expand Up @@ -74,7 +74,7 @@ class [[nodiscard]] RPCHandlerSender : public detail::SenderOf<void()>

private:
template <class, class, class>
friend struct detail::RegisterRPCHandlerOperationBase;
friend class detail::RPCHandlerSenderOperation;

agrpc::GrpcContext& grpc_context_;
Service& service_;
Expand Down Expand Up @@ -391,7 +391,9 @@ class RPCHandlerSenderOperation

template <class R>
RPCHandlerSenderOperation(RPCHandlerSender&& sender, R&& receiver)
: Base(static_cast<RPCHandlerSender&&>(sender), &complete_impl), receiver_(static_cast<R&&>(receiver))
: Base(sender.grpc_context_.get_executor(), sender.service_, static_cast<RPCHandler&&>(sender.rpc_handler_),
&complete_impl),
receiver_(static_cast<R&&>(receiver))
{
}

Expand Down

0 comments on commit e663263

Please sign in to comment.