-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Update proxied devices to handle connection interface and diagnostics. #145061
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
Update proxied devices to handle connection interface and diagnostics. #145061
Conversation
Also improve the performance of daemon device discovery by parallelizing the calls.
| for (final PollingDeviceDiscovery discoverer in _discoverers) | ||
| for (final Device device in await discoverer.discoverDevices()) | ||
| await _deviceToMap(device), | ||
| discoverer.discoverDevices(timeout: timeout), |
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.
I feel there's a non-trivial chance this leads to some weird state error in the future--but I also have no way to verify this, so let's ship it and see.
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.
I would say, if we are seeing some weird issue in the future, the most likely cause is some race conditions that we should fix anyway.
Btw, did you forget to approve this PR, or are you intending to take another look? :)
christopherfujino
left a comment
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.
LGTM
Also improve the performance of daemon device discovery by parallelizing the calls.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.