-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix subscriptions slow to update (#54)
The problem was that we only sent out info about new subs to relays every 10 seconds. So in the worst scenario of creating subscriptions sequentially like with purple pages we had to wait 10 seconds per subscription. I am very tired but I think there is an invariant in this code that new channel is only created when there is no need for an update therefore we won't end up in the situation where channel is closed but no update happens? We can therefore drop time.After completely.
- Loading branch information
Showing
2 changed files
with
30 additions
and
9 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