Skip to content

Commit 8e92d63

Browse files
committed
remove async + reschedule
1 parent cad49bc commit 8e92d63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/crons/websocket/websocket.cron.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export class WebsocketCronService {
2525
private readonly eventEmitter: EventEmitter2,
2626
) { }
2727

28-
@Cron('*/6 * * * * *')
29-
async handleWebsocketMetrics() {
28+
@Cron('*/5 * * * * *')
29+
handleWebsocketMetrics() {
3030
const connectedClients = this.server.sockets.sockets.size ?? 0;
3131
// TODO: add more metrics in the future
3232
// const subscriptions: Record<string, number> = {};

0 commit comments

Comments
 (0)