-
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.
feat(scanner): immediately refresh match on scan (#434)
Improve the time from scanning until the match visually updating by immediately refreshing from the API on succesful scan. Would be even faster to optimistically update the local cache of the date, but that's harder and not really necessary. Also rate limited the API transfer call to 4x per second as the API did not handle races well, leading to some cases of multiple customerItems active at the same time for one item, which caused a "not active" error in the scanner as number active == 1 is an assert in the API.
- Loading branch information
1 parent
1f65b60
commit 4acf848
Showing
3 changed files
with
24 additions
and
4 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
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