Skip to content

Commit b965d55

Browse files
committed
refactor(server): remove warmup cron job and related references
- Deleted the warmup cron job implementation in `warmup-cron.ts`. - Removed the invocation of `startWarmupCron` in the server startup process. - Cleaned up unused imports related to the warmup cron functionality. - Streamlined server startup code by eliminating obsolete logic.
1 parent 3d1908e commit b965d55

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

backend/src/server.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import cors from "cors";
33
import { ConnectedToDB } from "./database/database";
44
import senderRouter from "./routes/sender";
55
import receiverRouter from "./routes/receiver";
6-
import { startWarmupCron } from "./warmup-cron";
76
import { generalRateLimiter } from "./middleware/rateLimit";
87
import { ipBlockMiddleware } from "./middleware/ipBlock";
98
import imagesRouter from "./routes/images";
@@ -43,8 +42,6 @@ async function StartServer(){
4342
await ConnectedToDB();
4443
app.listen(PORT, "0.0.0.0", () => {
4544
console.log(`your server is listening on http://localhost:${PORT}`)
46-
// start the warmup cron job, dont need it anymore -- planning to move on digital-ocean
47-
// startWarmupCron();
4845
// Start S3 cleanup cron job
4946
startS3CleanupCron();
5047
})

backend/src/warmup-cron.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)