Skip to content

Commit

Permalink
chore: distinct ID range for proises
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Dec 15, 2023
1 parent 59f8613 commit b5bc7e2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/swingset-liveslots/tools/fakeVirtualSupport.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,12 @@ export function makeFakeLiveSlotsStuff(options = {}) {
return exportID;
}

// different starting point for more distinct IDs
let nextPromiseID = 7;
function allocatePromiseID() {
const exportID = nextExportID;
nextExportID += 1;
return exportID;
const promiseID = nextPromiseID;
nextPromiseID += 1;
return promiseID;
}

let nextCollectionID = 1;
Expand Down

0 comments on commit b5bc7e2

Please sign in to comment.