fix: useEventBus by propagating config to DefaultEventsService

This setting was added by reading from an optional `config` argument.
This was never passed, so `auto` was always assumed.
https://github.com/backstage/backstage/pull/27227/files#diff-cffd40a187b4fc584f03c968517fbacc110bde6a467f2384bbd92b803d3db47eR374-R379

Signed-off-by: RedlineTriad <39059512+RedlineTriad@users.noreply.github.com>
This commit is contained in:
RedlineTriad
2024-10-18 19:16:15 +02:00
parent b05e6f1f86
commit e02a02bb20
7 changed files with 20 additions and 10 deletions
+2 -1
View File
@@ -73,9 +73,10 @@ function makeCreateEnv(config: Config) {
discovery,
});
const eventsService = DefaultEventsService.create({ logger: root });
const eventsService = DefaultEventsService.create({ logger: root, config });
const eventBroker = new DefaultEventBroker(
root.child({ type: 'plugin' }),
config,
eventsService,
);
const signalsService = DefaultSignalsService.create({