|
|
|
@ -199,7 +199,8 @@ export class Bus<TEvent extends Event = Event> extends Unit implements EventBus<
|
|
|
|
|
const config = this.config.get('server.bus', {})
|
|
|
|
|
if ( Array.isArray(config.connectors) ) {
|
|
|
|
|
for ( const connector of (config.connectors as BusConnectorConfig[]) ) {
|
|
|
|
|
this.logging.info(`Creating bus connection of type: ${connector.type}`)
|
|
|
|
|
this.logging.verbose(`Creating bus connection of type: ${connector.type}`)
|
|
|
|
|
this.logging.verbose(new Error().stack)
|
|
|
|
|
if ( connector.type === 'redis' ) {
|
|
|
|
|
await this.connect(this.make(RedisBus))
|
|
|
|
|
}
|
|
|
|
|