Function
setIntParameter
(ctx context.Context, v int, desc string, dst *int, anyChange *bool)
Source from the content-addressed store, hash-verified
| 79 | } |
| 80 | |
| 81 | func 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 | |
| 92 | func setDurationParameter(ctx context.Context, v time.Duration, desc string, dst *time.Duration, anyChange *bool) { |
| 93 | if v == 0 { |
Tested by
no test coverage detected