Skip to content

Commit

Permalink
fix: init 시 비동기 잘 이용하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
flydog98 committed Dec 18, 2023
1 parent 5558bd1 commit 604fa1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/backend/src/containers/containers.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class ContainersService {
) {
if (this.configService.get<string>('SERVER_MODE') !== 'dev') {
this.initializeContainers();
this.removeUnusedContainers();
}
}

Expand All @@ -42,6 +41,8 @@ export class ContainersService {

this.availableContainers.set(i, containers);
}

this.removeUnusedContainers();
}

async removeUnusedContainers() {
Expand Down

0 comments on commit 604fa1f

Please sign in to comment.