Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
launch json
Browse files Browse the repository at this point in the history
  • Loading branch information
solendvega committed Jun 17, 2022
1 parent 53ac85f commit aa8d96f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "liquidate",
"type": "node",
"request": "launch",
"args": [
"${workspaceRoot}/src/liquidate.ts",
],
"runtimeArgs": [
"-r",
"ts-node/register",
"-r",
"tsconfig-paths/register"
],
"cwd": "${workspaceRoot}",
"internalConsoleOptions": "openOnSessionStart",
"runtimeExecutable": "/usr/local/bin/node",
"outputCapture": "std",
"env": {
"APP": "production",
"THROTTLE": "1000"
}
},
]
}
2 changes: 1 addition & 1 deletion src/liquidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async function runLiquidator() {

// Throttle to avoid rate limiter
if (process.env.THROTTLE) {
await wait(process.env.THROTTLE);
await wait(Number(process.env.THROTTLE));
}
}
}
Expand Down

0 comments on commit aa8d96f

Please sign in to comment.