Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit e80361e

Browse files
committed
feat: heartbeat
1 parent 684dcd0 commit e80361e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/master/src/util/updateHeartbeats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { mainLog, mongo, redis } from "../index.js";
33

44
const limit = pLimit(1);
55

6-
const BATCH_SIZE = 10000;
6+
const BATCH_SIZE = Number.parseInt(process.env.BATCH_SIZE || "10000");
77
export default async function () {
88
limit(async () => {
99
let count = 0;

0 commit comments

Comments
 (0)