Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added logic to deduplicate subscriptions #185

Merged
merged 10 commits into from
Nov 10, 2021
Merged

Added logic to deduplicate subscriptions #185

merged 10 commits into from
Nov 10, 2021

Conversation

bmuddha
Copy link
Collaborator

@bmuddha bmuddha commented Oct 27, 2021

No description provided.

@bmuddha bmuddha requested a review from polachok October 27, 2021 12:52
@polachok polachok changed the base branch from subscription-tracking to master November 1, 2021 13:53
@polachok
Copy link
Collaborator

polachok commented Nov 1, 2021

Should be rebased on master

src/pubsub.rs Outdated Show resolved Hide resolved
src/pubsub.rs Outdated Show resolved Hide resolved
@bmuddha bmuddha changed the base branch from master to subscription-tracking November 1, 2021 17:06
@bmuddha bmuddha changed the base branch from subscription-tracking to master November 1, 2021 17:14
src/rpc.rs Outdated Show resolved Hide resolved
src/pubsub.rs Outdated Show resolved Hide resolved
src/pubsub.rs Outdated Show resolved Hide resolved
src/pubsub.rs Outdated Show resolved Hide resolved
polachok and others added 10 commits November 10, 2021 15:49
found, and web socket connection is estabilished, then check whether we
have a corresponding active websocket subscription for that
subscription+commitment pair
Renamed websocket connection status field for AccountUpdateManager
Restored websocket disconnected uncacheable reason
Replaced get_idx_by_key by get_addr_by_key
This update adds new behaviour for two cases:
1. Program account subscription exists, and a new request for one of
   child accounts arrive, in this case as long as parent subscription is
   active, no new subscription for its child account will be created
2. If account subscription exists, and then getProgramAccount request
   for the parent of given account arrives, before estabilishing a new
   subscription for it, subscriptions for it's children will be cancelled
@bmuddha bmuddha merged commit 86a99d9 into bestarch-ae:master Nov 10, 2021
bmuddha added a commit that referenced this pull request Nov 12, 2021
@bmuddha bmuddha deleted the sub-deduplication branch December 2, 2021 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants