Skip to content

Conversation

@remimd
Copy link
Member

@remimd remimd commented Nov 22, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the SingleHandlerManager.subscribe method to improve atomicity when registering handlers for multiple key types. The change separates validation from registration, ensuring that either all key types are registered successfully or none are, preventing partial updates when a duplicate key type is encountered.

Key changes:

  • Pre-builds all entries in a dictionary before validation
  • Validates all key types upfront before any mutation
  • Uses dict.update() for atomic registration of all entries

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@remimd remimd merged commit 4cae09f into dev Nov 22, 2025
12 checks passed
@remimd remimd deleted the refactor branch November 22, 2025 16:58
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.

2 participants