-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description We have been using [HashSetDelay](https://docs.rs/delay_map/latest/delay_map/hashset_delay/struct.HashSetDelay.html) incorrectly. The expiration time is only respected if the set is turned into a stream and awaited on (it will return `Err` for expired items). This interface is very clunky and doesn't really serve our use case. # Changes <!-- List of detailed changes (how the change is accomplished) --> - [ ] Replace HashSetDelay with TtlCache which has a much more intuitive interface ## How to test Existing tests pass. Also, in the next PR I will add an e2e test that actually relies on the non-existent pool cache to be reset (as liquidity appears throughout the lifetime of the test)
- Loading branch information
Showing
4 changed files
with
25 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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