Skip to content

Commit

Permalink
chore: remove updateHeartbeats
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas950 committed Dec 21, 2024
1 parent 207fb12 commit b813a55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 74 deletions.
8 changes: 1 addition & 7 deletions apps/master/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Redis } from "ioredis";

import calculatePresenceUsage from "./util/calculatePresenceUsage.js";
import updateScience from "./util/updateScience.js";
import updateHeartbeats from "./util/updateHeartbeats.js";

if (process.env.NODE_ENV !== "production")
(await import("dotenv")).config({ path: "../../../.env" });
Expand Down Expand Up @@ -45,12 +44,7 @@ mainLog("Connecting to Redis...");
await redis.connect();
mainLog("Connected!");

await Promise.all([
updateScience(),
calculatePresenceUsage(),
updateHeartbeats()
]);
await Promise.all([updateScience(), calculatePresenceUsage()]);

new CronJob("* * * * *", updateScience).start();
new CronJob("* * * * *", calculatePresenceUsage).start();
new CronJob("*/1 * * * * *", updateHeartbeats).start();
67 changes: 0 additions & 67 deletions apps/master/src/util/updateHeartbeats.ts

This file was deleted.

0 comments on commit b813a55

Please sign in to comment.