(ctx context.Context, cli *apiclient.KopiaAPIClient)
| 23 | } |
| 24 | |
| 25 | func (c *commandServerThrottleGet) run(ctx context.Context, cli *apiclient.KopiaAPIClient) error { |
| 26 | var limits throttling.Limits |
| 27 | |
| 28 | if err := cli.Get(ctx, "control/throttle", nil, &limits); err != nil { |
| 29 | return errors.Wrap(err, "unable to get current throttle") |
| 30 | } |
| 31 | |
| 32 | return c.ctg.output(&limits) |
| 33 | } |