databroker: build config concurrently, option to bypass validation (#4655)

* validation: option to bypass

* concurrently build config

* add regex_priority_order and route sorting

* rm mutex
This commit is contained in:
Denis Mishin 2023-11-06 13:21:29 -05:00 committed by GitHub
parent ab104a643a
commit bfcc970839
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 439 additions and 244 deletions

View file

@ -65,7 +65,7 @@ func TestConfigSource(t *testing.T) {
OutboundPort: outboundPort,
Options: base,
})
src := NewConfigSource(ctx, baseSource, func(_ context.Context, cfg *config.Config) {
src := NewConfigSource(ctx, baseSource, EnableConfigValidation(true), func(_ context.Context, cfg *config.Config) {
cfgs <- cfg
})
cfgs <- src.GetConfig()