Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Haehnchen committed Nov 13, 2022
1 parent 24c91d4 commit b449cd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/exchange/bybit_linear.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ module.exports = class BybitLinear {
1245
);

me.throttler.addTask(`bybit_sync_positions`, me.syncPositionViaRestApi.bind(me), 1245);
me.throttler.addTask(`bybit_linear_sync_positions`, me.syncPositionViaRestApi.bind(me), 1245);
return f;
})(),
60000
Expand Down Expand Up @@ -304,7 +304,7 @@ module.exports = class BybitLinear {
*/

this.throttler.addTask(`bybit_sync_positions`, this.syncPositionViaRestApi.bind(this), 1545);
this.throttler.addTask(`bybit_linear_sync_positions`, this.syncPositionViaRestApi.bind(this), 1545);
}

console.log('update', data);
Expand Down Expand Up @@ -750,7 +750,7 @@ module.exports = class BybitLinear {
}

if (!response?.result) {
this.logger.error(`BybitLinear: Invalid position update:${JSON.stringify({ error: error, body: body })}`);
this.logger.error(`BybitLinear: Invalid position update:${JSON.stringify(response)}`);
return;
}

Expand Down

0 comments on commit b449cd2

Please sign in to comment.