Skip to content

Commit 578303a

Browse files
committed
refresh metrics every second
1 parent 8e92d63 commit 578303a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class WebsocketCronService {
2525
private readonly eventEmitter: EventEmitter2,
2626
) { }
2727

28-
@Cron('*/5 * * * * *')
28+
@Cron('*/1 * * * * *')
2929
handleWebsocketMetrics() {
3030
const connectedClients = this.server.sockets.sockets.size ?? 0;
3131
// TODO: add more metrics in the future

0 commit comments

Comments
 (0)