-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update version map unsync tolerance to 200ms
Before this change version_map's reload_interval was equal to the unsync_tolerance. This means that we would ~always miss the cache. The check for outdated cache is as follows: - When reading into cache set `last_reload_time = now - unsync_tolerance` - When checking if cache is outdated we check whether `now - last_reload_time > reload_interval This change updates the unsync tolerance to 200ms. This will mean the cache is valid for 1.8s Tests uncovered that we were not flushing the version_map when clearing the storage. This change fixes this as well.
- Loading branch information
Showing
3 changed files
with
5 additions
and
2 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