From 62b0b68c64dad4401e2a387fdc1f745fbb588974 Mon Sep 17 00:00:00 2001 From: Prime Xiao Date: Mon, 20 May 2024 23:30:15 +0800 Subject: [PATCH] fix: usage of func argument --- fc/invoke_loop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fc/invoke_loop.go b/fc/invoke_loop.go index c65799e..68f80b9 100644 --- a/fc/invoke_loop.go +++ b/fc/invoke_loop.go @@ -43,7 +43,7 @@ func startRuntimeAPILoop(ctx context.Context, api string, baseHandler handlerWra continue } go func(req *invoke, f *Function) { - err = handleInvoke(req, function) + err = handleInvoke(req, f) if err != nil { logPrintf("failed to invoke function due to %v", err) }