Skip to content

Conversation

@joshua-spacetime
Copy link
Collaborator

Description of Changes

Previously if two clients subscribed to semantically equivalent but syntactically different queries, we could potentially overwrite one resulting in one of the clients not receiving updates for that query.

The fix was to update a type signature from HashMap<_, QueryHash> to HashMap<_, Vec<QueryHash>>.

API and ABI breaking changes

None

Expected complexity level and risk

1

Testing

  • Updated automated regression test
  • Manually tested

@joshua-spacetime joshua-spacetime self-assigned this Jun 25, 2025
@joshua-spacetime joshua-spacetime force-pushed the joshua/fix/subscription-overwrite branch from a8426c9 to 34c7517 Compare June 26, 2025 00:51
Copy link
Collaborator

@jdetter jdetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thoroughly tested this using BitCraft and the target issue we were trying to address was gone when I upgraded to this patch. Additionally Joshua has added a regression test for this issue which was not passing before this PR but is passing now.

@joshua-spacetime joshua-spacetime added this pull request to the merge queue Jun 26, 2025
Merged via the queue into master with commit 022ca68 Jun 26, 2025
19 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/fix/subscription-overwrite branch June 26, 2025 02:56
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.

3 participants