- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
fix: Fix duplicate connect events when multiple providers are available #116
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
| bugbot run | 
| bugbot run | 
| bugbot run | 
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.
Pull Request Overview
This PR fixes an issue with duplicate connect events when multiple wallet providers are available by implementing provider-specific identification and concurrency protection.
- Enhances event identification by adding provider RDNS to connect/disconnect events
- Implements concurrency protection to prevent race conditions during account changes
- Adds logic to only emit connect events from the active provider to avoid duplicates
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description | 
|---|---|
| src/utils/base.ts | Adds RDNS identifier to connect/disconnect event descriptors for provider differentiation | 
| src/FormoAnalytics.ts | Implements comprehensive provider switching logic with concurrency protection and duplicate event prevention | 
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| bugbot run | 
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.
✅ Bugbot reviewed your changes and found no bugs!
| 🎉 This PR is included in version 1.19.8 🎉 | 
No description provided.