mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
build: fix gocritic lint issue unlambda
This commit is contained in:
parent
86e9a56d73
commit
4d787ae87f
@ -232,10 +232,8 @@ func (tb *tokenBucket) rcBwlimit(ctx context.Context, in rc.Params) (out rc.Para
|
|||||||
// Remote control for the token bucket
|
// Remote control for the token bucket
|
||||||
func init() {
|
func init() {
|
||||||
rc.Add(rc.Call{
|
rc.Add(rc.Call{
|
||||||
Path: "core/bwlimit",
|
Path: "core/bwlimit",
|
||||||
Fn: func(ctx context.Context, in rc.Params) (out rc.Params, err error) {
|
Fn: TokenBucket.rcBwlimit,
|
||||||
return TokenBucket.rcBwlimit(ctx, in)
|
|
||||||
},
|
|
||||||
Title: "Set the bandwidth limit.",
|
Title: "Set the bandwidth limit.",
|
||||||
Help: `
|
Help: `
|
||||||
This sets the bandwidth limit to the string passed in. This should be
|
This sets the bandwidth limit to the string passed in. This should be
|
||||||
|
Loading…
Reference in New Issue
Block a user