From 36b62a38484234bff221c9757ceb2cca06aa1372 Mon Sep 17 00:00:00 2001 From: Chris O'Hara Date: Tue, 4 Jun 2024 14:44:23 +1000 Subject: [PATCH] Avoid runnable term --- dispatchlambda/lambda.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dispatchlambda/lambda.go b/dispatchlambda/lambda.go index 498f9a6..2d30df0 100644 --- a/dispatchlambda/lambda.go +++ b/dispatchlambda/lambda.go @@ -24,7 +24,7 @@ func Handler(fn dispatch.Function) lambda.Handler { } type handler struct { - runnable dispatch.Function + function dispatch.Function } func (h *handler) Invoke(ctx context.Context, payload []byte) ([]byte, error) { @@ -50,7 +50,7 @@ func (h *handler) Invoke(ctx context.Context, payload []byte) ([]byte, error) { return nil, badRequest("raw payload did not contain a protobuf encoded execution request") } - res := h.runnable.Run(ctx, req) + res := h.function.Run(ctx, req) rawResponse, err := proto.Marshal(res) if err != nil {