Skip to content

Commit

Permalink
chore: [BE] 불필요한 주석 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
DongHoonYu96 committed Dec 2, 2024
1 parent 3c1e403 commit 7e4ebb4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions BE/src/game/service/game.room.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,22 +253,6 @@ export class GameRoomService {
await pipeline.exec();
}

// @Cron(CronExpression.EVERY_MINUTE)
// async checkInactiveRooms(): Promise<void> {
// const now = Date.now();
// const rooms = await this.redis.smembers(REDIS_KEY.ACTIVE_ROOMS);
// this.logger.verbose(`비활성 방 체크시작 / 활성 방 목록: ${rooms}`);
//
// for (const roomId of rooms) {
// const lastActivity = await this.redis.hget(REDIS_KEY.ROOM(roomId), 'lastActivityAt');
//
// if (lastActivity && now - parseInt(lastActivity) > this.INACTIVE_THRESHOLD) {
// await this.redis.publish('room:cleanup', roomId);
// this.logger.verbose(`비활성으로 인해 방 ${roomId} 정리 시작`);
// }
// }
// }

/**
* 플레이어 관련 모든 데이터에 TTL 설정
*/
Expand Down

0 comments on commit 7e4ebb4

Please sign in to comment.