We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ada7e0b commit e4c3e69Copy full SHA for e4c3e69
index.ts
@@ -1,14 +1,12 @@
1
import express, { Express, Request, Response } from 'express';
2
import { Worker } from 'worker_threads';
3
-import dotenv from 'dotenv';
4
import { cpuIntensiveFunc } from './cpu_intensive_func';
5
import { ioIntensiveFunc } from './io_intensive_func';
6
import { queue } from './queue';
7
import { tasks } from './tasks';
8
9
-dotenv.config();
10
const app: Express = express();
11
-const port = process.env.PORT;
+const port = 8000;
12
13
// experiment 1:
14
// first hit: http://localhost:8000/cpu-intensive-task
0 commit comments