(changes []string, section string, oldRules, newRules []config.PayloadRule)
| 337 | } |
| 338 | |
| 339 | func appendPayloadRuleChanges(changes []string, section string, oldRules, newRules []config.PayloadRule) []string { |
| 340 | if reflect.DeepEqual(oldRules, newRules) { |
| 341 | return changes |
| 342 | } |
| 343 | return append(changes, fmt.Sprintf("payload.%s: updated (%d -> %d rules)", section, len(oldRules), len(newRules))) |
| 344 | } |
| 345 | |
| 346 | func appendPayloadFilterRuleChanges(changes []string, section string, oldRules, newRules []config.PayloadFilterRule) []string { |
| 347 | if reflect.DeepEqual(oldRules, newRules) { |
no outgoing calls
no test coverage detected