(svc appServices, parent commandParent)
| 13 | } |
| 14 | |
| 15 | func (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 | |
| 22 | func (c *commandRepositoryThrottleSet) run(ctx context.Context, rep repo.DirectRepositoryWriter) error { |
| 23 | thr := rep.Throttler() |
nothing calls this directly
no test coverage detected