Function
setDurationParameter
(ctx context.Context, v time.Duration, desc string, dst *time.Duration, anyChange *bool)
Source from the content-addressed store, hash-verified
| 90 | } |
| 91 | |
| 92 | func setDurationParameter(ctx context.Context, v time.Duration, desc string, dst *time.Duration, anyChange *bool) { |
| 93 | if v == 0 { |
| 94 | return |
| 95 | } |
| 96 | |
| 97 | *dst = v |
| 98 | *anyChange = true |
| 99 | |
| 100 | log(ctx).Infof(" - setting %v to %v.\n", desc, v) |
| 101 | } |
| 102 | |
| 103 | func setRetentionModeParameter(ctx context.Context, v blob.RetentionMode, desc string, dst *blob.RetentionMode, anyChange *bool) { |
| 104 | if !v.IsValid() { |
Tested by
no test coverage detected