MCPcopy
hub / github.com/kopia/kopia / setIntParameter

Function setIntParameter

cli/command_repository_set_parameters.go:81–90  ·  view source on GitHub ↗
(ctx context.Context, v int, desc string, dst *int, anyChange *bool)

Source from the content-addressed store, hash-verified

79}
80
81func setIntParameter(ctx context.Context, v int, desc string, dst *int, anyChange *bool) {
82 if v == 0 {
83 return
84 }
85
86 *dst = v
87 *anyChange = true
88
89 log(ctx).Infof(" - setting %v to %v.\n", desc, v)
90}
91
92func setDurationParameter(ctx context.Context, v time.Duration, desc string, dst *time.Duration, anyChange *bool) {
93 if v == 0 {

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected