summaryrefslogtreecommitdiff
path: root/nodejs/lib/api.js
diff options
context:
space:
mode:
authorJulien Dessaux2024-03-15 22:17:10 +0100
committerJulien Dessaux2024-03-15 22:17:10 +0100
commit01e3f05ea0d4360cb85de67928c7b5bd9ed48742 (patch)
tree1f104f229010a59800a9e7e72243e1ad3418fd50 /nodejs/lib/api.js
parent[javascript] updated dependencies (diff)
downloadspacetraders-01e3f05ea0d4360cb85de67928c7b5bd9ed48742.tar.gz
spacetraders-01e3f05ea0d4360cb85de67928c7b5bd9ed48742.tar.bz2
spacetraders-01e3f05ea0d4360cb85de67928c7b5bd9ed48742.zip
[javascript] Rework the contracting loop following the asteroids changes
Diffstat (limited to 'nodejs/lib/api.js')
-rw-r--r--nodejs/lib/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/nodejs/lib/api.js b/nodejs/lib/api.js
index b9f768f..ecb0282 100644
--- a/nodejs/lib/api.js
+++ b/nodejs/lib/api.js
@@ -10,7 +10,7 @@ let busy = false; // true if we are already sending api requests.
let backoffSeconds = 0;
let running = false;
// other module variables
-let headers = undefined; // a file scope variable so that we only evaluate these once.
+let headers = undefined; // a file scoped variable so that we only evaluate these once.
let queue = new PriorityQueue(); // a priority queue to hold api calls we want to send, allows for throttling.
// a single queue processor should be running at any time, otherwise there will be trouble!