MCPcopy
hub / github.com/kopia/kopia / run

Method run

cli/command_server_throttle_get.go:25–33  ·  view source on GitHub ↗
(ctx context.Context, cli *apiclient.KopiaAPIClient)

Source from the content-addressed store, hash-verified

23}
24
25func (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}

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
outputMethod · 0.45

Tested by

no test coverage detected