There was an error while loading. Please reload this page.
1 parent 1584c0a commit 60eeb50Copy full SHA for 60eeb50
1 file changed
src/task_queue/index.ts
@@ -46,7 +46,7 @@ function taskIdFactory() {
46
let taskIdCounter = 0;
47
const maxint = 2147483647;
48
return () => {
49
- taskIdCounter = (taskIdCounter + 1) % (maxint + 1);
+ taskIdCounter = (taskIdCounter + 1) & maxint;
50
return taskIdCounter.toString(36);
51
}
52
0 commit comments