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

Check if there are any new versions before refreshing in SubscriptionSet #5695

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented Jul 29, 2022

This is pretty minor but there's some scenarios where we end up calling refresh() on a SubscriptionSet that definitely hasn't changed a bunch of times and it does a nontrivial amount of work even if there's no newer transaction versions.

#5150 added a second call to get_by_version(version()) and I don't see how the first call could possibly have any effect, so I removed it.

@tgoyne tgoyne self-assigned this Jul 29, 2022
@cla-bot cla-bot bot added the cla: yes label Jul 29, 2022
@tgoyne tgoyne force-pushed the tg/subscription-refresh branch 2 times, most recently from a3ef45e to c1e601f Compare August 3, 2022 20:16
@tgoyne tgoyne force-pushed the tg/subscription-refresh branch from c1e601f to 0f87b16 Compare August 3, 2022 23:46
@tgoyne tgoyne force-pushed the tg/subscription-refresh branch from 0f87b16 to e23028d Compare August 4, 2022 17:27
@tgoyne tgoyne merged commit 4c9d929 into master Aug 5, 2022
@tgoyne tgoyne deleted the tg/subscription-refresh branch August 5, 2022 23:05
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants