diff --git a/src/restate_context_impl.ts b/src/restate_context_impl.ts index 19152d95..d41e81ed 100644 --- a/src/restate_context_impl.ts +++ b/src/restate_context_impl.ts @@ -229,9 +229,9 @@ export class RestateGrpcContextImpl implements RestateGrpcContext { ); } - rpcGateway(): RpcGateway { - return new RpcContextImpl(this); - } + rpcGateway(): RpcGateway { + return new RpcContextImpl(this); + } // DON'T make this function async!!! // The reason is that we want the erros thrown by the initial checks to be propagated in the caller context,