MCPcopy Index your code
hub / github.com/kopia/kopia / setup

Method setup

cli/command_server_throttle_set.go:19–25  ·  view source on GitHub ↗
(svc appServices, parent commandParent)

Source from the content-addressed store, hash-verified

17}
18
19func (c *commandServerThrottleSet) setup(svc appServices, parent commandParent) {
20 cmd := parent.Command("set", "Set throttling parameters for a running server")
21 c.sf.setup(svc, cmd)
22 c.cts.setup(cmd)
23
24 cmd.Action(svc.serverAction(&c.sf, c.run))
25}
26
27func (c *commandServerThrottleSet) run(ctx context.Context, cli *apiclient.KopiaAPIClient) error {
28 var limits throttling.Limits

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80
serverActionMethod · 0.65

Tested by

no test coverage detected