Skip to content

Commit e4c3e69

Browse files
authored
Update index.ts
1 parent ada7e0b commit e4c3e69

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import express, { Express, Request, Response } from 'express';
22
import { Worker } from 'worker_threads';
3-
import dotenv from 'dotenv';
43
import { cpuIntensiveFunc } from './cpu_intensive_func';
54
import { ioIntensiveFunc } from './io_intensive_func';
65
import { queue } from './queue';
76
import { tasks } from './tasks';
87

9-
dotenv.config();
108
const app: Express = express();
11-
const port = process.env.PORT;
9+
const port = 8000;
1210

1311
// experiment 1:
1412
// first hit: http://localhost:8000/cpu-intensive-task

0 commit comments

Comments
 (0)