-
Notifications
You must be signed in to change notification settings - Fork 450
fix: prevent exceptions when multiple connection approval are used [MTT-3496] #1958
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
Conversation
…here can only be one
…roval handler (changelog)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first of all, if we'd like to use this as a chance to tidy up a few things around connection approval stuff, I'd like to start with suggesting this:
✔️ DO add the suffix "EventHandler" to names of delegates that are used in events.
✔️ DO add the suffix "Callback" to names of delegates other than those used as event handlers.
❌ DO NOT add the suffix "Delegate" to a delegate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but also on the other hand, I'm seeing 2 different ConnectionApprovedDelegate
& ConnectionApprovalDelegate
delegates defined.
I guess, one is for the actual approve/deny logic and other one is for just post-approval notification, if I understand things correctly.
so in that case, the first one that executes approve/deny logic would be a handler/callback and the other one that notifies listeners would be an event.
nevertheless, I feel like we should have a quick tech discussion and alignment on what we'd like to do here to tidy up connection approval stuff in general and use or very last change to leave public API with a better shape & outlook.
Yeah, the naming was odd but one is what the user subscribes to and the other is what the user calls to finish approval. But moving forward the naming convention rules are good to review over. |
Superseded by #1972 |
This logs an error and prevents the addition of further connection approval callbacks.
[MTT-3496]
Changelog