Skip to content

Clean up plugglable discovery and refactor serial-discovery usage #327

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

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

masci
Copy link
Contributor

@masci masci commented Aug 6, 2019

This PR removes the partial work to support pluggable discovery so it can be added back later with a dedicated series of PRs.

Since serial-discovery is the only discoverer used at the moment, its usage is now more explicit.

The API was cleaned up, removing unused parameters like the context.

resp := &rpc.BoardListResp{Ports: []*rpc.DetectedPort{}}
for _, disc := range commands.GetDiscoveries(req) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

instead of going through a dynamic loading mechanism that will always return just the serial discovery, we use it directly

Copy link
Contributor

@rsora rsora left a comment

Choose a reason for hiding this comment

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

LGTM
Premature optimization is the root of all evil cit.

@masci masci merged commit 7e547b0 into master Aug 8, 2019
@masci masci deleted the massi/board-list branch August 8, 2019 16:23
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