-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Predictions.PredictionsPubSub): adjust dispatching approach (#…
…1816) * tweak(PredictionsPubSub): send first broadcast quickly * tweak(PredictionsPubSub): separate the timed broadcast call This lets us manually call for a :broadcast without starting a new repeating timer. * refactor(Predictions.Stream): update the store instead of broadcasting to `PredictionsPubSub` to update `Predictions.Store`, just update the store directly from the stream. * tweak(PredictionsPubSub): change state shape * feat(Predictions.Stream): broadcast on :reset * feat(PredictionsPubSub): track dispatched predictions don't dispatch if the predictions are unchanged. - refactor: fetch predictions only once for each distinct set of fetch_keys, before dispatching to one or more pids
- Loading branch information
1 parent
e005cba
commit f34888d
Showing
6 changed files
with
166 additions
and
182 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
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
Oops, something went wrong.