-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wallet): one ledger-tip req per pollInterval
WHAT: replaced `delay` operator with `auditTime` operator, which starts a timer once the first isSettled$ emission, and emits the last value, ignoring previous ones. WHY: isSettled$ observable emissions triggered ledger-tip requests, delayed by pollingInterval. Flapping isSettled$ caused multiple requests to be done, because the flapping was delayed. Throttling is in place for the case where the ledger-tip request is not resolved yet.
- Loading branch information
1 parent
b760734
commit b272ea9
Showing
2 changed files
with
52 additions
and
6 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