Skip to content

Commit

Permalink
refactor: remove throng
Browse files Browse the repository at this point in the history
  • Loading branch information
KishenKumarrrrr committed Sep 20, 2023
1 parent a6b2b86 commit 4563c47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"swagger-ui-express": "4.6.3",
"telegraf": "3.38.0",
"threads": "1.7.0",
"throng": "5.0.0",
"throng": "^5.0.0",
"tiny-worker": "2.3.0",
"twilio": "4.7.2",
"uuid": "7.0.3",
Expand Down Expand Up @@ -110,7 +110,7 @@
"@types/redis": "2.8.17",
"@types/supertest": "2.0.12",
"@types/swagger-ui-express": "4.1.2",
"@types/throng": "5.0.4",
"@types/throng": "^5.0.4",
"@types/umzug": "2.3.0",
"@types/uuid": "7.0.2",
"@types/validator": "12.0.1",
Expand Down
7 changes: 1 addition & 6 deletions backend/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import './setup'
import 'source-map-support/register'
import express from 'express'
import { loaders } from '@core/loaders'
import throng from 'throng'
const port = Number(process.env.PORT) || 4000
const app: express.Application = express()

Expand All @@ -25,8 +24,4 @@ const start = async (): Promise<void> => {
}
}

// Use throng to create a cluster and make full use of all the cores in underlying
// machine. The default counts is os.cpus().length
void throng({
start,
})
void start()

0 comments on commit 4563c47

Please sign in to comment.