MCPcopy
hub / github.com/kopia/kopia / setup

Method setup

cli/command_repository_throttle_set.go:15–20  ·  view source on GitHub ↗
(svc appServices, parent commandParent)

Source from the content-addressed store, hash-verified

13}
14
15func (c *commandRepositoryThrottleSet) setup(svc appServices, parent commandParent) {
16 cmd := parent.Command("set", "Set throttling parameters for a repository")
17 c.cts.setup(cmd)
18
19 cmd.Action(svc.directRepositoryWriteAction(c.run))
20}
21
22func (c *commandRepositoryThrottleSet) run(ctx context.Context, rep repo.DirectRepositoryWriter) error {
23 thr := rep.Throttler()

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80

Tested by

no test coverage detected