Skip to content

Commit

Permalink
Merge pull request #367 from bitfinexcom/staging
Browse files Browse the repository at this point in the history
Release version to master
  • Loading branch information
prdn authored Apr 17, 2024
2 parents e8b819d + 76dfb32 commit 7c5813e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
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

0 comments on commit 7c5813e

Please sign in to comment.