-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use UUIDv4 for item IDs to prevent collisions (#23)
The previous solution of using an incrementing integer would result in collisions between items stored in state and beams, since beam IDs are generated on the fly and not stored in state, and the unique ID was only incremented when the ID was not stored in state. This makes item IDs a little harder to read, but ensure they remain unique across all items.
- Loading branch information
Showing
2 changed files
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters