diff --git a/services/node-services/src/handler_api.ts b/services/node-services/src/handler_api.ts index 250c82cb..75065b24 100644 --- a/services/node-services/src/handler_api.ts +++ b/services/node-services/src/handler_api.ts @@ -3,10 +3,10 @@ import * as restate from "@restatedev/restate-sdk"; export const HandlerAPIEchoTestFQN = "handlerapi.HandlerAPIEchoTest"; // These two handlers just test the correct propagation of the input message in the output -const echo = (ctx: restate.RpcContext, msg: any) => { +const echo = (ctx: restate.RpcContext, msg: any): Promise => { return msg; }; -const echoEcho = async (ctx: restate.RpcContext, msg: any) => { +const echoEcho = async (ctx: restate.RpcContext, msg: any): Promise => { return await ctx.rpc(handlerApi).echo(msg); };