This is a TODO expressed here:
|
var cfg InterceptorConfig |
|
for _, c := range cfgs { |
|
if c.Match(it) { |
|
// TODO: there should be a validation check that there is at |
|
// most one config per interceptor. |
|
cfg = c |
|
break |
|
} |
|
} |
We should either panic there, or require configs to be somehow mergeable.