MSP-4622 configuration division
This commit is contained in:
1 parent
cf9a24f424
commit
2c0562e98f
9 files changed
+164
-18
No files matched your search
@@ -48,7 +48,10 @@ func (a *Assembly) ReceiveConfig(ctx context.Context, remoteConfig []byte) error
|
||||
a.logger.SetLevel(newCfg.LogLevel)
|
||||
|
||||
locator := NewLocator(a.logger, a.router)
|
||||
handler := locator.Handler(newCfg)
|
||||
handler, err := locator.Handler(newCfg)
|
||||
if err != nil {
|
||||
a.logger.Fatal(ctx, errors.WithMessage(err, "new handler"))
|
||||
}
|
||||
|
||||
a.server.Upgrade(handler)
|
||||
|
||||
|
||||
Reference in new issue
Block a user