From 4d787ae87ff3037dd7e19f67e3493ce28f7af669 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Fri, 31 May 2024 16:11:45 +0200 Subject: [PATCH] build: fix gocritic lint issue unlambda --- fs/accounting/token_bucket.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/accounting/token_bucket.go b/fs/accounting/token_bucket.go index 5e5b597e1..a306096e8 100644 --- a/fs/accounting/token_bucket.go +++ b/fs/accounting/token_bucket.go @@ -232,10 +232,8 @@ func (tb *tokenBucket) rcBwlimit(ctx context.Context, in rc.Params) (out rc.Para // Remote control for the token bucket func init() { rc.Add(rc.Call{ - Path: "core/bwlimit", - Fn: func(ctx context.Context, in rc.Params) (out rc.Params, err error) { - return TokenBucket.rcBwlimit(ctx, in) - }, + Path: "core/bwlimit", + Fn: TokenBucket.rcBwlimit, Title: "Set the bandwidth limit.", Help: ` This sets the bandwidth limit to the string passed in. This should be