-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Getting rid of
Watcher::appointments
Apart from this having caused a ripple effect in the code base and tests, there where 2 main issue that needed to be resolved for such a change to happen: 1- a UUID -> Locator map was needed in `Watcher::get_subscription_info` (a method used by the public api) since the `UserInfo` held by the gatekeeper kept track of uuids of a user and not the locators for that user. This could be resolved by making `UserInfo` hold the users' locators instead of uuids, and we can get the uuids for these locators at any time for a specific user. 2- a UUID -> UserId map was needed in `Watcher::filtered_block_connected` for breached appointments. We could have just loaded the user_id while loading the appointment from the DB, so this wasn't actually needed.
- Loading branch information
1 parent
92ad4e5
commit 72b384d
Showing
7 changed files
with
383 additions
and
346 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
Oops, something went wrong.