Skip to content

Commit

Permalink
feat: start modules at once
Browse files Browse the repository at this point in the history
  • Loading branch information
sdlyy committed Mar 5, 2024
1 parent ae4db9b commit 49f1959
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/backend/src/modules/DiscoveryModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ export function createDiscoveryModule({
start: async () => {
statusLogger.info('Starting discovery module')

for (const submodule of submodules) {
await submodule.start?.()
}
await Promise.all(submodules.map((submodule) => submodule.start?.()))

statusLogger.info('Main discovery module started')
},
Expand Down

0 comments on commit 49f1959

Please sign in to comment.