From ede48e388ad95d369eeff809b6539a8bd2f385d7 Mon Sep 17 00:00:00 2001 From: Fabian Wiles Date: Sat, 26 May 2018 08:14:16 +1200 Subject: [PATCH] fixup! feat(grpc-engine): introduce package --- modules/grpc-engine/interface.proto | 5 ----- modules/grpc-engine/src/main.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/grpc-engine/interface.proto b/modules/grpc-engine/interface.proto index 76ec26b91..a1869925b 100644 --- a/modules/grpc-engine/interface.proto +++ b/modules/grpc-engine/interface.proto @@ -9,8 +9,3 @@ message RenderOptions { string document string documentFilename } - -message RenderOptions { - string document - string documentFilename -} diff --git a/modules/grpc-engine/src/main.ts b/modules/grpc-engine/src/main.ts index 16bc20a80..4c2ee120c 100644 --- a/modules/grpc-engine/src/main.ts +++ b/modules/grpc-engine/src/main.ts @@ -35,7 +35,7 @@ export function startGRPCEngine( const server = new grpc.Server(); server.addProtoService(protoDescriptor.GRPCEngine.service, { render: async (call: any, callback: any) => { - const options = call.request as GRPCEngineRenderOptions; + const renderOptions = call.request as GRPCEngineRenderOptions; const html = await engine.render(renderOptions); // TODO: how to send errors? callback(null, html);