From 6d5814ba652df963d52dc9265524f84215a6a0fc Mon Sep 17 00:00:00 2001 From: anrs Date: Tue, 30 Mar 2021 18:14:56 +0800 Subject: [PATCH] fix: make golint works (#373) Co-authored-by: anrs --- cluster/calcium/lambda.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/calcium/lambda.go b/cluster/calcium/lambda.go index 262a9262a..e26f98caa 100644 --- a/cluster/calcium/lambda.go +++ b/cluster/calcium/lambda.go @@ -36,7 +36,7 @@ func (c *Calcium) RunAndWait(ctx context.Context, opts *types.DeployOptions, inC return nil, errors.WithStack(types.ErrRunAndWaitCountOneWithStdin) } - commit, err := c.walCreateLambda(ctx, opts) + commit, err := c.walCreateLambda(opts) if err != nil { return nil, logger.Err(err) } @@ -134,7 +134,7 @@ func (c *Calcium) RunAndWait(ctx context.Context, opts *types.DeployOptions, inC return runMsgCh, nil } -func (c *Calcium) walCreateLambda(ctx context.Context, opts *types.DeployOptions) (wal.Commit, error) { +func (c *Calcium) walCreateLambda(opts *types.DeployOptions) (wal.Commit, error) { uid, err := uuid.NewRandom() if err != nil { return nil, errors.WithStack(err)