Skip to content

Commit

Permalink
Avoid runnable term
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Jun 4, 2024
1 parent c3e00d5 commit 36b62a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dispatchlambda/lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 {
Expand Down

0 comments on commit 36b62a3

Please sign in to comment.