build: fix gocritic lint issue unlambda

This commit is contained in:
albertony 2024-05-31 16:11:45 +02:00 committed by Nick Craig-Wood
parent 86e9a56d73
commit 4d787ae87f

View File

@ -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