Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release version to master #367

Merged
merged 8 commits into from
Apr 17, 2024
Merged
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.17.1
- name: Setup configs
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bfx-report",
"version": "4.10.1",
"version": "4.10.2",
"description": "Reporting tool",
"main": "worker.js",
"license": "Apache-2.0",
Expand Down
8 changes: 6 additions & 2 deletions workers/loc.api/helpers/get-data-from-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const {
isRateLimitError,
isNonceSmallError,
isUserIsNotMerchantError,
isENetError
isENetError,
isAuthError
} = require('./api-errors-testers')

const _delay = (mc = 80000, interrupter) => {
Expand Down Expand Up @@ -161,7 +162,10 @@ module.exports = (
// Handle unexpected BFX API errors
countUnexpectedError += 1

if (countUnexpectedError > 3) {
if (
countUnexpectedError > 3 ||
isAuthError(err)
) {
throw err
}
if (_isInterrupted(_interrupter)) {
Expand Down
2 changes: 1 addition & 1 deletion workers/loc.api/helpers/limit-param.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getMethodLimit = (sendLimit, method, methodsLimits = {}) => {
trades: { default: 500, max: 1000, innerMax: 2500 },
orderTrades: { default: 500, max: 1000, innerMax: 1000 },
fundingTrades: { default: 500, max: 1000, innerMax: 1000 },
publicTrades: { default: 500, max: 5000, innerMax: 5000 },
publicTrades: { default: 500, max: 5000, innerMax: 10000 },
orders: { default: 250, max: 500, innerMax: 2500 },
movements: { default: 25, max: 25, innerMax: 1000 },
fundingOfferHistory: { default: 100, max: 500, innerMax: 500 },
Expand Down