Skip to content

Commit 99455e7

Browse files
committed
Get rid of rate-limiting that's not needed anymore
1 parent 7081598 commit 99455e7

File tree

3 files changed

+7
-20
lines changed

3 files changed

+7
-20
lines changed

frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
"@vue/test-utils": "^1.1.3",
119119
"adm-zip": "^0.5.10",
120120
"autoprefixer": "^10.4.16",
121-
"axios-rate-limit": "^1.3.0",
122121
"babel-core": "^7.0.0-bridge.0",
123122
"babel-jest": "^26.6.3",
124123
"babel-loader": "8.2.5",

frontend/src/locales/scripts/axios.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
const axios = require("axios")
2-
const rateLimit = require("axios-rate-limit")
32

43
const { userAgent } = require("../../constants/user-agent")
54

6-
module.exports = rateLimit(
7-
axios.create({
8-
headers: { "User-Agent": userAgent },
9-
}),
10-
{
11-
maxRPS: 50, // limit GlotPress calls to 50 requests per second
12-
}
13-
)
5+
module.exports = module.exports = axios.create({
6+
headers: { "User-Agent": userAgent },
7+
})

pnpm-lock.yaml

Lines changed: 4 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)